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>
This commit is contained in:

committed by
Catalin Marinas

vanhempi
a7686a45c0
commit
ab0155a22a
@@ -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
|
||||
|
Viittaa uudesa ongelmassa
Block a user