[meta-lsi] [PATCH 27/41] linux-yocto-3.10: axxiapowerpc: add new Kconfig debug options

Daniel Dragomir daniel.dragomir at windriver.com
Thu Jan 28 04:29:30 PST 2016


From: Cristian Bercaru <cristian.bercaru at windriver.com>

Setting DBG = "yes" in 'local.conf' now adds even more debug Kconfig
options to axxiapowerpc yocto builds.

Signed-off-by: Cristian Bercaru <cristian.bercaru at windriver.com>
---
 .../linux-3.10/axxiapowerpc/common/dbg-non-hw.cfg  | 45 -----------------
 .../linux-3.10/axxiapowerpc/common/dbg.scc         |  1 -
 .../axxiapowerpc/preempt-rt/dbg-non-hw.cfg         | 57 ++++++++++++++++++++++
 .../linux-3.10/axxiapowerpc/preempt-rt/dbg.scc     |  1 +
 .../axxiapowerpc/standard/dbg-non-hw.cfg           | 56 +++++++++++++++++++++
 .../linux-3.10/axxiapowerpc/standard/dbg.scc       |  1 +
 6 files changed, 115 insertions(+), 46 deletions(-)
 delete mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg-non-hw.cfg
 delete mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg.scc
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg-non-hw.cfg
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg.scc
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg-non-hw.cfg
 create mode 100644 recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg.scc

diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg-non-hw.cfg b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg-non-hw.cfg
deleted file mode 100644
index 4797ec3..0000000
--- a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg-non-hw.cfg
+++ /dev/null
@@ -1,45 +0,0 @@
-#.........................................................................
-#                                WARNING
-#
-# This file is a kernel configuration fragment, and not a full kernel
-# configuration file.  The final kernel configuration is made up of
-# an assembly of processed fragments, each of which is designed to
-# capture a specific part of the final configuration (e.g. platform
-# configuration, feature configuration, and board specific hardware
-# configuration).  For more information on kernel configuration, please
-# consult the product documentation.
-#
-#.........................................................................
-
-#
-# Kernel hacking
-#
-CONFIG_LOCKUP_DETECTOR=y
-# CONFIG_DETECT_HUNG_TASK is not set
-CONFIG_SCHEDSTATS=y
-CONFIG_TIMER_STATS=y
-CONFIG_DEBUG_OBJECTS=y
-CONFIG_DEBUG_OBJECTS_SELFTEST=y
-CONFIG_DEBUG_OBJECTS_FREE=y
-CONFIG_DEBUG_OBJECTS_TIMERS=y
-CONFIG_DEBUG_OBJECTS_WORK=y
-CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
-CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
-CONFIG_SLUB_STATS=y
-CONFIG_DEBUG_KMEMLEAK=y
-CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
-CONFIG_DEBUG_RT_MUTEXES=y
-CONFIG_LOCK_STAT=y
-CONFIG_DEBUG_ATOMIC_SLEEP=y
-CONFIG_DEBUG_STACK_USAGE=y
-CONFIG_DEBUG_HIGHMEM=y
-CONFIG_DEBUG_VM=y
-CONFIG_DEBUG_VM_RB=y
-CONFIG_DEBUG_MEMORY_INIT=y
-
-#
-# RCU Debugging
-#
-CONFIG_DEBUG_PER_CPU_MAPS=y
-CONFIG_DEBUG_PAGEALLOC=y
-CONFIG_DEBUG_STACKOVERFLOW=y
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg.scc b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg.scc
deleted file mode 100644
index 01fcbff..0000000
--- a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/common/dbg.scc
+++ /dev/null
@@ -1 +0,0 @@
-kconf non-hardware dbg-non-hw.cfg
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg-non-hw.cfg b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg-non-hw.cfg
new file mode 100644
index 0000000..c6636c6
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg-non-hw.cfg
@@ -0,0 +1,57 @@
+#.........................................................................
+#                                WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of which is designed to
+# capture a specific part of the final configuration (e.g. platform
+# configuration, feature configuration, and board specific hardware
+# configuration).  For more information on kernel configuration, please
+# consult the product documentation.
+#
+#.........................................................................
+
+#
+# Kernel hacking
+#
+CONFIG_DEBUG_SHIRQ=y
+CONFIG_LOCKUP_DETECTOR=y
+# CONFIG_DETECT_HUNG_TASK is not set
+CONFIG_SCHEDSTATS=y
+CONFIG_TIMER_STATS=y
+CONFIG_DEBUG_OBJECTS=y
+CONFIG_DEBUG_OBJECTS_SELFTEST=y
+CONFIG_DEBUG_OBJECTS_FREE=y
+CONFIG_DEBUG_OBJECTS_TIMERS=y
+CONFIG_DEBUG_OBJECTS_WORK=y
+CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
+CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
+CONFIG_SLUB_DEBUG_ON=y
+CONFIG_SLUB_STATS=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
+CONFIG_DEBUG_RT_MUTEXES=y
+CONFIG_PROVE_LOCKING=y
+CONFIG_LOCK_STAT=y
+CONFIG_DEBUG_LOCKDEP=y
+CONFIG_DEBUG_ATOMIC_SLEEP=y
+CONFIG_DEBUG_STACK_USAGE=y
+CONFIG_DEBUG_KOBJECT=y
+CONFIG_DEBUG_HIGHMEM=y
+CONFIG_DEBUG_VM=y
+CONFIG_DEBUG_VM_RB=y
+CONFIG_DEBUG_WRITECOUNT=y
+CONFIG_DEBUG_MEMORY_INIT=y
+CONFIG_DEBUG_LIST=y
+CONFIG_DEBUG_SG=y
+CONFIG_DEBUG_NOTIFIERS=y
+CONFIG_DEBUG_CREDENTIALS=y
+
+#
+# RCU Debugging
+#
+CONFIG_SPARSE_RCU_POINTER=y
+CONFIG_RCU_CPU_STALL_INFO=y
+CONFIG_RCU_TRACE=y
+CONFIG_DEBUG_PER_CPU_MAPS=y
+CONFIG_DEBUG_PAGEALLOC=y
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg.scc b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg.scc
new file mode 100644
index 0000000..01fcbff
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/preempt-rt/dbg.scc
@@ -0,0 +1 @@
+kconf non-hardware dbg-non-hw.cfg
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg-non-hw.cfg b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg-non-hw.cfg
new file mode 100644
index 0000000..e7aa8d4
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg-non-hw.cfg
@@ -0,0 +1,56 @@
+#.........................................................................
+#                                WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of which is designed to
+# capture a specific part of the final configuration (e.g. platform
+# configuration, feature configuration, and board specific hardware
+# configuration).  For more information on kernel configuration, please
+# consult the product documentation.
+#
+#.........................................................................
+
+#
+# Kernel hacking
+#
+CONFIG_DEBUG_SHIRQ=y
+CONFIG_LOCKUP_DETECTOR=y
+# CONFIG_DETECT_HUNG_TASK is not set
+CONFIG_SCHEDSTATS=y
+CONFIG_TIMER_STATS=y
+CONFIG_DEBUG_OBJECTS=y
+CONFIG_DEBUG_OBJECTS_SELFTEST=y
+CONFIG_DEBUG_OBJECTS_FREE=y
+CONFIG_DEBUG_OBJECTS_TIMERS=y
+CONFIG_DEBUG_OBJECTS_WORK=y
+CONFIG_DEBUG_OBJECTS_RCU_HEAD=y
+CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER=y
+CONFIG_SLUB_STATS=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
+CONFIG_DEBUG_RT_MUTEXES=y
+CONFIG_PROVE_LOCKING=y
+CONFIG_LOCK_STAT=y
+CONFIG_DEBUG_LOCKDEP=y
+CONFIG_DEBUG_ATOMIC_SLEEP=y
+CONFIG_DEBUG_STACK_USAGE=y
+CONFIG_DEBUG_KOBJECT=y
+CONFIG_DEBUG_HIGHMEM=y
+CONFIG_DEBUG_VM=y
+CONFIG_DEBUG_VM_RB=y
+CONFIG_DEBUG_WRITECOUNT=y
+CONFIG_DEBUG_MEMORY_INIT=y
+CONFIG_DEBUG_LIST=y
+CONFIG_DEBUG_SG=y
+CONFIG_DEBUG_NOTIFIERS=y
+CONFIG_DEBUG_CREDENTIALS=y
+
+#
+# RCU Debugging
+#
+CONFIG_SPARSE_RCU_POINTER=y
+CONFIG_RCU_CPU_STALL_INFO=y
+CONFIG_RCU_TRACE=y
+CONFIG_DEBUG_PER_CPU_MAPS=y
+CONFIG_DEBUG_PAGEALLOC=y
diff --git a/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg.scc b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg.scc
new file mode 100644
index 0000000..01fcbff
--- /dev/null
+++ b/recipes-kernel/linux/conf/linux-yocto/linux-3.10/axxiapowerpc/standard/dbg.scc
@@ -0,0 +1 @@
+kconf non-hardware dbg-non-hw.cfg
-- 
1.9.1



More information about the meta-lsi mailing list