[PATCH] lockdep: locking API self tests
[deliverable/linux.git] / lib / Kconfig.debug
index 91e338a3d0693b19c46a2407fd29785ad2de54e4..16021b09c1848bde59c572568f108ca8a91f6484 100644 (file)
@@ -149,6 +149,17 @@ config DEBUG_SPINLOCK_SLEEP
          If you say Y here, various routines which may sleep will become very
          noisy if they are called with a spinlock held.
 
+config DEBUG_LOCKING_API_SELFTESTS
+       bool "Locking API boot-time self-tests"
+       depends on DEBUG_KERNEL
+       help
+         Say Y here if you want the kernel to run a short self-test during
+         bootup. The self-test checks whether common types of locking bugs
+         are detected by debugging mechanisms or not. (if you disable
+         lock debugging then those bugs wont be detected of course.)
+         The following locking APIs are covered: spinlocks, rwlocks,
+         mutexes and rwsems.
+
 config STACKTRACE
        bool
        depends on STACKTRACE_SUPPORT
This page took 0.024858 seconds and 5 git commands to generate.