Add a feature to enable the kernel DYNAMIC_DEBUG config which allows for
dynamic printing of debug messages. Kernel debug messages are normally
not enabled in the kernel unless manually defining DEBUG in code files.
Dynamic debug allows for the messages to be embedded but toggled
dynamically during run time (via boot parameters or from a sysfs
interface).

Enabling this option is useful when debugging multiple parts of the
kernel as well as to allow for enabling of debug messages without
needing to modify the source.

Signed-off-by: Nathan Rossi <[email protected]>
---
 features/debug/debug-dyndbg.cfg | 1 +
 features/debug/debug-dyndbg.scc | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 features/debug/debug-dyndbg.cfg
 create mode 100644 features/debug/debug-dyndbg.scc

diff --git a/features/debug/debug-dyndbg.cfg b/features/debug/debug-dyndbg.cfg
new file mode 100644
index 0000000000..5698f5ebf6
--- /dev/null
+++ b/features/debug/debug-dyndbg.cfg
@@ -0,0 +1 @@
+CONFIG_DYNAMIC_DEBUG=y
diff --git a/features/debug/debug-dyndbg.scc b/features/debug/debug-dyndbg.scc
new file mode 100644
index 0000000000..b48de2d32b
--- /dev/null
+++ b/features/debug/debug-dyndbg.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable dynamic debug printk"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware debug-dyndbg.cfg
-- 
2.13.2

-- 
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to