aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2018-03-30 17:27:59 -0400
committerIngo Molnar <mingo@kernel.org>2018-03-31 01:30:50 -0400
commitf07cbebb6daf04e5c9721e5be2737a6068c7e2a2 (patch)
tree3c1b9301b828cbd9827a6b7b30465deb8c40e67b
parent5149cbac4235e12a34cf089592a8bd1c9fcfa467 (diff)
locking/Kconfig: Add LOCK_DEBUGGING_SUPPORT to make it more readable
There are a couples of lock debugging Kconfig options that depends on the following support options: - TRACE_IRQFLAGS_SUPPORT - STACKTRACE_SUPPORT - LOCKDEP_SUPPORT That makes those lock debugging options harder to read and understand. So a new LOCK_DEBUGGING_SUPPORT option is added that is equivalent to the above three options together. That makes the Kconfig.debug file more readable. Signed-off-by: Waiman Long <longman@redhat.com> Acked-by: Davidlohr Bueso <dave@stgolabs.net> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1522445280-7767-3-git-send-email-longman@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--lib/Kconfig.debug15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 88650ab5cedb..ee7ca42e737e 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1034,6 +1034,11 @@ config DEBUG_PREEMPT
1034 1034
1035menu "Lock Debugging (spinlocks, mutexes, etc...)" 1035menu "Lock Debugging (spinlocks, mutexes, etc...)"
1036 1036
1037config LOCK_DEBUGGING_SUPPORT
1038 bool
1039 depends on TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
1040 default y
1041
1037config DEBUG_RT_MUTEXES 1042config DEBUG_RT_MUTEXES
1038 bool "RT Mutex debugging, deadlock detection" 1043 bool "RT Mutex debugging, deadlock detection"
1039 depends on DEBUG_KERNEL && RT_MUTEXES 1044 depends on DEBUG_KERNEL && RT_MUTEXES
@@ -1060,7 +1065,7 @@ config DEBUG_MUTEXES
1060 1065
1061config DEBUG_WW_MUTEX_SLOWPATH 1066config DEBUG_WW_MUTEX_SLOWPATH
1062 bool "Wait/wound mutex debugging: Slowpath testing" 1067 bool "Wait/wound mutex debugging: Slowpath testing"
1063 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 1068 depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
1064 select DEBUG_LOCK_ALLOC 1069 select DEBUG_LOCK_ALLOC
1065 select DEBUG_SPINLOCK 1070 select DEBUG_SPINLOCK
1066 select DEBUG_MUTEXES 1071 select DEBUG_MUTEXES
@@ -1084,7 +1089,7 @@ config DEBUG_RWSEMS
1084 1089
1085config DEBUG_LOCK_ALLOC 1090config DEBUG_LOCK_ALLOC
1086 bool "Lock debugging: detect incorrect freeing of live locks" 1091 bool "Lock debugging: detect incorrect freeing of live locks"
1087 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 1092 depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
1088 select DEBUG_SPINLOCK 1093 select DEBUG_SPINLOCK
1089 select DEBUG_MUTEXES 1094 select DEBUG_MUTEXES
1090 select DEBUG_RT_MUTEXES if RT_MUTEXES 1095 select DEBUG_RT_MUTEXES if RT_MUTEXES
@@ -1099,7 +1104,7 @@ config DEBUG_LOCK_ALLOC
1099 1104
1100config PROVE_LOCKING 1105config PROVE_LOCKING
1101 bool "Lock debugging: prove locking correctness" 1106 bool "Lock debugging: prove locking correctness"
1102 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 1107 depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
1103 select LOCKDEP 1108 select LOCKDEP
1104 select DEBUG_SPINLOCK 1109 select DEBUG_SPINLOCK
1105 select DEBUG_MUTEXES 1110 select DEBUG_MUTEXES
@@ -1144,7 +1149,7 @@ config PROVE_LOCKING
1144 1149
1145config LOCKDEP 1150config LOCKDEP
1146 bool 1151 bool
1147 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 1152 depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
1148 select STACKTRACE 1153 select STACKTRACE
1149 select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !SCORE && !X86 1154 select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC && !SCORE && !X86
1150 select KALLSYMS 1155 select KALLSYMS
@@ -1155,7 +1160,7 @@ config LOCKDEP_SMALL
1155 1160
1156config LOCK_STAT 1161config LOCK_STAT
1157 bool "Lock usage statistics" 1162 bool "Lock usage statistics"
1158 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT 1163 depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
1159 select LOCKDEP 1164 select LOCKDEP
1160 select DEBUG_SPINLOCK 1165 select DEBUG_SPINLOCK
1161 select DEBUG_MUTEXES 1166 select DEBUG_MUTEXES