]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - lib/Kconfig.debug
kmemleak: Introduce a default off mode for kmemleak
[net-next-2.6.git] / lib / Kconfig.debug
index e722e9d62221d40560176b5f8d2cabdcf74a5e2d..95ab402db9c0cd4b30def420dfd3be3e114f6e28 100644 (file)
@@ -400,6 +400,13 @@ config DEBUG_KMEMLEAK_TEST
 
          If unsure, say N.
 
+config DEBUG_KMEMLEAK_DEFAULT_OFF
+       bool "Default kmemleak to off"
+       depends on DEBUG_KMEMLEAK
+       help
+         Say Y here to disable kmemleak by default. It can then be enabled
+         on the command line via kmemleak=on.
+
 config DEBUG_PREEMPT
        bool "Debug preemptible kernel"
        depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT