s390/boot: Add prefix filtering to bootdebug messages
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 22 Nov 2024 23:02:25 +0000 (00:02 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:24:01 +0000 (17:24 +0100)
commitb79015ae63d3c91f06ab78b6f06abba94fd88e12
treeea0298832e296d021ebfb03141ced0b3985e6dbc
parentd20d8e51338fc39aedf98786a4e9b71d4af4bda7
s390/boot: Add prefix filtering to bootdebug messages

Enhance boot debugging by allowing the "bootdebug" kernel parameter to
accept an optional comma-separated list of prefixes. Only debug messages
starting with these prefixes will be printed during boot. For example:

    bootdebug=startup,vmem

Not specifying a filter for the "bootdebug" parameter prints all debug
messages. The `boot_fmt` macro can be defined to set a common prefix:

    #define boot_fmt(fmt) "startup: " fmt

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/boot/boot.h
arch/s390/boot/ipl_parm.c
arch/s390/boot/printk.c
arch/s390/include/asm/boot_data.h
arch/s390/kernel/setup.c