|
@@ -359,6 +359,18 @@ config DEBUG_KMEMLEAK
|
|
|
In order to access the kmemleak file, debugfs needs to be
|
|
|
mounted (usually at /sys/kernel/debug).
|
|
|
|
|
|
+config DEBUG_KMEMLEAK_EARLY_LOG_SIZE
|
|
|
+ int "Maximum kmemleak early log entries"
|
|
|
+ depends on DEBUG_KMEMLEAK
|
|
|
+ range 200 2000
|
|
|
+ default 400
|
|
|
+ help
|
|
|
+ Kmemleak must track all the memory allocations to avoid
|
|
|
+ reporting false positives. Since memory may be allocated or
|
|
|
+ freed before kmemleak is initialised, an early log buffer is
|
|
|
+ used to store these actions. If kmemleak reports "early log
|
|
|
+ buffer exceeded", please increase this value.
|
|
|
+
|
|
|
config DEBUG_KMEMLEAK_TEST
|
|
|
tristate "Simple test for the kernel memory leak detector"
|
|
|
depends on DEBUG_KMEMLEAK
|