Skip to content

Commit 9eade16

Browse files
Dave Hansentorvalds
authored andcommitted
group locking debugging options
Original posting: http://lkml.kernel.org/r/[email protected] 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 <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 6dfc066 commit 9eade16

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/Kconfig.debug

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ config DEBUG_PREEMPT
703703
if kernel code uses it in a preemption-unsafe way. Also, the kernel
704704
will detect preemption count underflows.
705705

706+
menu "Lock Debugging (spinlocks, mutexes, etc...)"
707+
706708
config DEBUG_RT_MUTEXES
707709
bool "RT Mutex debugging, deadlock detection"
708710
depends on DEBUG_KERNEL && RT_MUTEXES
@@ -832,12 +834,6 @@ config DEBUG_LOCKDEP
832834
additional runtime checks to debug itself, at the price
833835
of more runtime overhead.
834836

835-
config TRACE_IRQFLAGS
836-
bool
837-
help
838-
Enables hooks to interrupt enabling and disabling for
839-
either tracing or lock debugging.
840-
841837
config DEBUG_ATOMIC_SLEEP
842838
bool "Sleep inside atomic section checking"
843839
select PREEMPT_COUNT
@@ -859,6 +855,14 @@ config DEBUG_LOCKING_API_SELFTESTS
859855
The following locking APIs are covered: spinlocks, rwlocks,
860856
mutexes and rwsems.
861857

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+
862866
config STACKTRACE
863867
bool
864868
depends on STACKTRACE_SUPPORT

0 commit comments

Comments
 (0)