author: Chris Down <chris@chrisdown.name> 2021-06-15 17:52:53 +0100
committer: Petr Mladek <pmladek@suse.com> 2021-07-19 11:57:48 +0200
commit: 337015573718b161891a3473d25f59273f2e626b
parent: f3d75cf537db57f7918a17a75527951de850e5ec
Commit Summary:
Diffstat:
1 file changed, 12 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index bb0d6e6262b1..ccffa7ae5ccc 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -775,6 +775,20 @@ config PRINTK_SAFE_LOG_BUF_SHIFT
13 => 8 KB for each CPU
12 => 4 KB for each CPU
+config PRINTK_INDEX
+ bool "Printk indexing debugfs interface"
+ depends on PRINTK && DEBUG_FS
+ help
+ Add support for indexing of all printk formats known at compile time
+ at <debugfs>/printk/index/<module>.
+
+ This can be used as part of maintaining daemons which monitor
+ /dev/kmsg, as it permits auditing the printk formats present in a
+ kernel, allowing detection of cases where monitored printks are
+ changed or no longer present.
+
+ There is no additional runtime cost to printk with this enabled.
+
#
# Architectures with an unreliable sched_clock() should select this:
#