[meta-xilinx] [PATCH 3/12] linux/config: Add debug-dyndbg kernel feature fragment
Nathan Rossi
nathan at nathanrossi.com
Sun May 7 07:07:06 PDT 2017
The debug-dyndbg fragment enables CONFIG_DYNAMIC_DEBUG, which enables
the building of pr_debug/etc. such that during execution the debug
messages can be enabled dynamically.
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
---
.../config/xilinx-common/features/debug/debug-dyndbg.cfg | 11 +++++++++++
.../config/xilinx-common/features/debug/debug-dyndbg.scc | 4 ++++
2 files changed, 15 insertions(+)
create mode 100644 recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg
create mode 100644 recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc
diff --git a/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg
new file mode 100644
index 0000000000..cd5b0f5a0d
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.cfg
@@ -0,0 +1,11 @@
+# This config fragment enables dynamic debug printk messages. Use this to debug
+# various modules/files in the kernel without needing to #define DEBUG.
+#
+# Can be enabled with bootargs. e.g report all driver debug messages, this is
+# very useful for debugging device probing during boot:
+#
+# debug dyndbg="file drivers/of/dd.c +pm"
+#
+
+CONFIG_DYNAMIC_DEBUG=y
+
diff --git a/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc
new file mode 100644
index 0000000000..de270d168e
--- /dev/null
+++ b/recipes-kernel/linux/config/xilinx-common/features/debug/debug-dyndbg.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "Enable dynamic debug printk"
+define KFEATURE_COMPATIBILITY board
+
+kconfig hardware debug-dyndbg.cfg
--
2.11.0
More information about the meta-xilinx
mailing list