Skip to contentSkip to conversation

powerpc/configs: Add debug configs for debugging

PATCH New Gautam Menghani 1 participant 1 message Nov 17 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 powerpc/configs: Add debug configs for debugging

Kernel has multiple config options to run extra validation checks that can help catch bugs. Define new configs for major subsystems to make it easy to enable the debug config options for a given area. Also add some common debug config options to existing debug.config for use in CI testing.

---
v3:
1. Avoid merging the debug configs with defconfig (Shrikanth)

v2:
1. Split the enablement of configs into pseries and powernv configs (self)

 arch/powerpc/configs/debug.config        | 11 +++++++++++
 arch/powerpc/configs/locks_debug.config  | 13 +++++++++++++
 arch/powerpc/configs/lockup_debug.config |  4 ++++
 arch/powerpc/configs/mm_debug.config     | 24 ++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 arch/powerpc/configs/locks_debug.config
 create mode 100644 arch/powerpc/configs/lockup_debug.config
 create mode 100644 arch/powerpc/configs/mm_debug.config
arch/powerpc/configs/debug.config +11 -0
index bcc1fcf25e10..6bbca575a27c 100644
@@ -3,3 +3,14 @@ CONFIG_PPC_IRQ_SOFT_MASK_DEBUG=y
 CONFIG_PPC_KUAP_DEBUG=y
 CONFIG_PPC_RFI_SRR_DEBUG=y
 CONFIG_SCOM_DEBUGFS=y
+CONFIG_EXPERT=y
+CONFIG_PROVE_LOCKING=y
+CONFIG_PROVE_RCU=y
+CONFIG_KASAN=y
+CONFIG_UBSAN=y
+CONFIG_DEBUG_PAGEALLOC=y
+CONFIG_DEBUG_VM=y
+CONFIG_DEBUG_OBJECTS=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_STACKOVERFLOW=y
+
arch/powerpc/configs/locks_debug.config new file +13 -0
new file mode 100644
index 000000000000..b2cb23de75db
@@ -0,0 +1,13 @@
+CONFIG_EXPERT=y
+CONFIG_PROVE_LOCKING=y
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_DEBUG_ATOMIC_SLEEP=y
+CONFIG_DEBUG_LOCKING_API_SELFTESTS=y
+CONFIG_DEBUG_MUTEXES=y
+CONFIG_DEBUG_SPINLOCK=y
+CONFIG_DEBUG_RT_MUTEXES=y
+CONFIG_DEBUG_RWSEMS=y
+CONFIG_PROVE_RAW_LOCK_NESTING=y
+CONFIG_RCU_EXPERT=y
+CONFIG_PROVE_RCU=y
+CONFIG_RCU_TRACE=y
arch/powerpc/configs/lockup_debug.config new file +4 -0
new file mode 100644
index 000000000000..ad0a79abf60f
@@ -0,0 +1,4 @@
+CONFIG_EXPERT=y
+CONFIG_WQ_WATCHDOG=y
+CONFIG_DETECT_HUNG_TASK=y
+CONFIG_PANIC_ON_OOPS=y
arch/powerpc/configs/mm_debug.config new file +24 -0
new file mode 100644
index 000000000000..0e88eb983536
@@ -0,0 +1,24 @@
+CONFIG_EXPERT=y
+CONFIG_DEBUG_PAGEALLOC=y
+CONFIG_DEBUG_SLAB=y
+CONFIG_KASAN=y
+CONFIG_KFENCE=y
+CONFIG_KMSAN=y
+CONFIG_DEBUG_KMEMLEAK=y
+CONFIG_DEBUG_VM=y
+CONFIG_DEBUG_VIRTUAL=y
+CONFIG_DEBUG_OBJECTS=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_SCHED_STACK_END_CHECK=y
+CONFIG_DEBUG_VM_MAPLE_TREE=y
+CONFIG_DEBUG_VM_RB=y
+CONFIG_DEBUG_VM_PGFLAGS=y
+CONFIG_DEBUG_MEMORY_INIT=y
+CONFIG_DEBUG_PER_CPU_MAPS=y
+CONFIG_DEBUG_KMAP_LOCAL=y
+CONFIG_DEBUG_HIGHMEM=y
+CONFIG_DEBUG_STACKOVERFLOW=y
Signature · 1 line
2.56.0