aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kmemleak.txt8
-rw-r--r--mm/kmemleak.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/kmemleak.txt b/Documentation/kmemleak.txt
index f655308064d7..9426e94f291a 100644
--- a/Documentation/kmemleak.txt
+++ b/Documentation/kmemleak.txt
@@ -31,12 +31,12 @@ Memory scanning parameters can be modified at run-time by writing to the
31/sys/kernel/debug/kmemleak file. The following parameters are supported: 31/sys/kernel/debug/kmemleak file. The following parameters are supported:
32 32
33 off - disable kmemleak (irreversible) 33 off - disable kmemleak (irreversible)
34 stack=on - enable the task stacks scanning 34 stack=on - enable the task stacks scanning (default)
35 stack=off - disable the tasks stacks scanning 35 stack=off - disable the tasks stacks scanning
36 scan=on - start the automatic memory scanning thread 36 scan=on - start the automatic memory scanning thread (default)
37 scan=off - stop the automatic memory scanning thread 37 scan=off - stop the automatic memory scanning thread
38 scan=<secs> - set the automatic memory scanning period in seconds (0 38 scan=<secs> - set the automatic memory scanning period in seconds
39 to disable it) 39 (default 600, 0 to stop the automatic scanning)
40 40
41Kmemleak can also be disabled at boot-time by passing "kmemleak=off" on 41Kmemleak can also be disabled at boot-time by passing "kmemleak=off" on
42the kernel command line. 42the kernel command line.
diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 17096d1b59b2..a38418a95d33 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -194,7 +194,7 @@ static unsigned long jiffies_min_age;
194/* delay between automatic memory scannings */ 194/* delay between automatic memory scannings */
195static signed long jiffies_scan_wait; 195static signed long jiffies_scan_wait;
196/* enables or disables the task stacks scanning */ 196/* enables or disables the task stacks scanning */
197static int kmemleak_stack_scan; 197static int kmemleak_stack_scan = 1;
198/* mutex protecting the memory scanning */ 198/* mutex protecting the memory scanning */
199static DEFINE_MUTEX(scan_mutex); 199static DEFINE_MUTEX(scan_mutex);
200/* mutex protecting the access to the /sys/kernel/debug/kmemleak file */ 200/* mutex protecting the access to the /sys/kernel/debug/kmemleak file */