summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVignesh Radhakrishnan <vigneshr@codeaurora.org>2015-01-22 11:43:45 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:48 -0700
commit07ca3d98c661ab40512c8ac8416bb9ff782247a7 (patch)
tree2949acd44de36a403f6da63f1e3f5321aca550e6 /lib
parent12471ac6f8a09d594cbe8c4f0fa4f424eb7d29ac (diff)
kmemleak : Make kmemleak_stack_scan optional using config
Currently we have kmemleak_stack_scan enabled by default. This can hog the cpu with pre-emption disabled for a long time starving other tasks. Make this optional at compile time, since if required we can always write to sysfs entry and enable this option. Change-Id: Ie30447861c942337c7ff25ac269b6025a527e8eb Signed-off-by: Vignesh Radhakrishnan <vigneshr@codeaurora.org> Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 5a37e2e7bbce..d899d0da595f 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -928,6 +928,15 @@ config DEBUG_TASK_STACK_SCAN_OFF
writing to the debugfs entry :
echo "stack=on" > /sys/kernel/debug/kmemleak.
+config DEBUG_TASK_STACK_SCAN_OFF
+ bool "Disable kmemleak task stack scan by default"
+ depends on DEBUG_KMEMLEAK
+ help
+ Say Y here to disable kmemleak task stack scan by default
+ at compile time. It can be enabled later if required by
+ writing to the debugfs entry :
+ echo "stack=on" > /sys/kernel/debug/kmemleak.
+
config DEBUG_PREEMPT
bool "Debug preemptible kernel"
depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT