summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2010-07-19 11:54:17 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2010-07-19 11:54:17 +0100
commitab0155a22ad5bda3a6dbfbbecc416cbe92619755 (patch)
tree0a8b2caea650cc31f61bc8723b0da275382701af /lib/Kconfig.debug
parenta7686a45c07462b78df5ac15fc696a86e57ccf91 (diff)
downloadlinux-stable-ab0155a22ad5bda3a6dbfbbecc416cbe92619755.tar.gz
linux-stable-ab0155a22ad5bda3a6dbfbbecc416cbe92619755.tar.bz2
linux-stable-ab0155a22ad5bda3a6dbfbbecc416cbe92619755.zip
kmemleak: Introduce a default off mode for kmemleak
Introduce a new DEBUG_KMEMLEAK_DEFAULT_OFF config parameter that allows kmemleak to be disabled by default, but enabled on the command line via: kmemleak=on. Although a reboot is required to turn it on, its still useful to not require a re-compile. Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e722e9d62221..95ab402db9c0 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -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