author: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-01 18:41:13 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-01 18:41:13 -0700
commit: df43d903828c59afb9e93b59835127a02e1f8144
parent: 9e5f3ffcf1cb34e7c7beb3f79a96f58536730924
Commit Summary:
Diffstat:
1 file changed, 12 insertions, 5 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 55f9f7738ebb..e708180e9a59 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:
#
@@ -1509,11 +1523,6 @@ config PRINTK
very difficult to diagnose system problems, saying N here is
strongly discouraged.
-config PRINTK_NMI
- def_bool y
- depends on PRINTK
- depends on HAVE_NMI
-
config BUG
bool "BUG() support" if EXPERT
default y