diff options
| author | Jason Baron <jbaron@redhat.com> | 2010-07-19 06:54:17 -0400 |
|---|---|---|
| committer | Catalin Marinas <catalin.marinas@arm.com> | 2010-07-19 06:54:17 -0400 |
| commit | ab0155a22ad5bda3a6dbfbbecc416cbe92619755 (patch) | |
| tree | 0a8b2caea650cc31f61bc8723b0da275382701af /lib | |
| parent | a7686a45c07462b78df5ac15fc696a86e57ccf91 (diff) | |
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')
| -rw-r--r-- | lib/Kconfig.debug | 7 |
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 | |||
| 400 | 400 | ||
| 401 | If unsure, say N. | 401 | If unsure, say N. |
| 402 | 402 | ||
| 403 | config DEBUG_KMEMLEAK_DEFAULT_OFF | ||
| 404 | bool "Default kmemleak to off" | ||
| 405 | depends on DEBUG_KMEMLEAK | ||
| 406 | help | ||
| 407 | Say Y here to disable kmemleak by default. It can then be enabled | ||
| 408 | on the command line via kmemleak=on. | ||
| 409 | |||
| 403 | config DEBUG_PREEMPT | 410 | config DEBUG_PREEMPT |
| 404 | bool "Debug preemptible kernel" | 411 | bool "Debug preemptible kernel" |
| 405 | depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT | 412 | depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT |
