diff options
author | Dave Hansen <dave@linux.vnet.ibm.com> | 2013-07-01 16:04:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-04 14:25:39 -0400 |
commit | 9eade16b4151ec35a9e03bbc7cc890e640a536c1 (patch) | |
tree | 253dc89cf1dba37e4e941cfbeaf1d967d8002600 | |
parent | 6dfc06651b3d29aa07ed99b8075e5d324f7a953a (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.debug | 16 |
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 | ||
706 | menu "Lock Debugging (spinlocks, mutexes, etc...)" | ||
707 | |||
706 | config DEBUG_RT_MUTEXES | 708 | config 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 | ||
835 | config TRACE_IRQFLAGS | ||
836 | bool | ||
837 | help | ||
838 | Enables hooks to interrupt enabling and disabling for | ||
839 | either tracing or lock debugging. | ||
840 | |||
841 | config DEBUG_ATOMIC_SLEEP | 837 | config 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 | ||
858 | endmenu # lock debugging | ||
859 | |||
860 | config TRACE_IRQFLAGS | ||
861 | bool | ||
862 | help | ||
863 | Enables hooks to interrupt enabling and disabling for | ||
864 | either tracing or lock debugging. | ||
865 | |||
862 | config STACKTRACE | 866 | config STACKTRACE |
863 | bool | 867 | bool |
864 | depends on STACKTRACE_SUPPORT | 868 | depends on STACKTRACE_SUPPORT |