aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Hansen <dave@linux.vnet.ibm.com>2013-07-01 16:04:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 14:25:39 -0400
commit9eade16b4151ec35a9e03bbc7cc890e640a536c1 (patch)
tree253dc89cf1dba37e4e941cfbeaf1d967d8002600
parent6dfc06651b3d29aa07ed99b8075e5d324f7a953a (diff)
group locking debugging options
Original posting: http://lkml.kernel.org/r/20121214184208.D9E5804D@kernel.stglabs.ibm.com There are quite a few of these, and we want to make sure that there is one-stop-shopping for lock debugging. Signed-off-by: Dave Hansen <dave@linux.vnet.ibm.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--lib/Kconfig.debug16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 70dfda31c8aa..c0d41dfadc2d 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -703,6 +703,8 @@ config DEBUG_PREEMPT
703 if kernel code uses it in a preemption-unsafe way. Also, the kernel 703 if kernel code uses it in a preemption-unsafe way. Also, the kernel
704 will detect preemption count underflows. 704 will detect preemption count underflows.
705 705
706menu "Lock Debugging (spinlocks, mutexes, etc...)"
707
706config DEBUG_RT_MUTEXES 708config DEBUG_RT_MUTEXES
707 bool "RT Mutex debugging, deadlock detection" 709 bool "RT Mutex debugging, deadlock detection"
708 depends on DEBUG_KERNEL && RT_MUTEXES 710 depends on DEBUG_KERNEL && RT_MUTEXES
@@ -832,12 +834,6 @@ config DEBUG_LOCKDEP
832 additional runtime checks to debug itself, at the price 834 additional runtime checks to debug itself, at the price
833 of more runtime overhead. 835 of more runtime overhead.
834 836
835config TRACE_IRQFLAGS
836 bool
837 help
838 Enables hooks to interrupt enabling and disabling for
839 either tracing or lock debugging.
840
841config DEBUG_ATOMIC_SLEEP 837config DEBUG_ATOMIC_SLEEP
842 bool "Sleep inside atomic section checking" 838 bool "Sleep inside atomic section checking"
843 select PREEMPT_COUNT 839 select PREEMPT_COUNT
@@ -859,6 +855,14 @@ config DEBUG_LOCKING_API_SELFTESTS
859 The following locking APIs are covered: spinlocks, rwlocks, 855 The following locking APIs are covered: spinlocks, rwlocks,
860 mutexes and rwsems. 856 mutexes and rwsems.
861 857
858endmenu # lock debugging
859
860config TRACE_IRQFLAGS
861 bool
862 help
863 Enables hooks to interrupt enabling and disabling for
864 either tracing or lock debugging.
865
862config STACKTRACE 866config STACKTRACE
863 bool 867 bool
864 depends on STACKTRACE_SUPPORT 868 depends on STACKTRACE_SUPPORT