config: add KERNEL_DYNAMIC_DEBUG option
authorLuka Perkov <luka@openwrt.org>
Mon, 9 Dec 2013 11:30:16 +0000 (11:30 +0000)
committerLuka Perkov <luka@openwrt.org>
Mon, 9 Dec 2013 11:30:16 +0000 (11:30 +0000)
Useful when debugging kernel which uses this infrastructure, for
example ubi/ubifs.

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39007

config/Config-kernel.in

index d5b565ea5e0affa63946edc8802a49cb132b2ce3..3347254cb697b8344b1d52d45d781ce0c8dcbd06 100644 (file)
@@ -68,6 +68,18 @@ config KERNEL_DEBUG_LL
        help
          ARM low level debugging
 
        help
          ARM low level debugging
 
+config KERNEL_DYNAMIC_DEBUG 
+       bool "Compile the kernel with dynamic printk"
+       select KERNEL_DEBUG_FS
+       default n
+       help
+         Compiles debug level messages into the kernel, which would not
+         otherwise be available at runtime. These messages can then be
+         enabled/disabled based on various levels of scope - per source file,
+         function, module, format string, and line number. This mechanism
+         implicitly compiles in all pr_debug() and dev_dbg() calls, which
+         enlarges the kernel text size by about 2%.
+
 config KERNEL_EARLY_PRINTK
        bool "Compile the kernel with early printk"
        default n
 config KERNEL_EARLY_PRINTK
        bool "Compile the kernel with early printk"
        default n