mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
kmemleak: add config to select auto scan
Kmemleak scan can be cpu intensive and can stall user tasks at times. To prevent this, add config DEBUG_KMEMLEAK_AUTO_SCAN to enable/disable auto scan on boot up. Also protect first_run with DEBUG_KMEMLEAK_AUTO_SCAN as this is meant for only first automatic scan. Link: http://lkml.kernel.org/r/1540231723-7087-1-git-send-email-prpatel@nvidia.com Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com> Signed-off-by: Sachin Nikam <snikam@nvidia.com> Signed-off-by: Prateek <prpatel@nvidia.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3c0c12cc8f
commit
d53ce04227
2 changed files with 21 additions and 4 deletions
|
@ -593,6 +593,21 @@ config DEBUG_KMEMLEAK_DEFAULT_OFF
|
|||
Say Y here to disable kmemleak by default. It can then be enabled
|
||||
on the command line via kmemleak=on.
|
||||
|
||||
config DEBUG_KMEMLEAK_AUTO_SCAN
|
||||
bool "Enable kmemleak auto scan thread on boot up"
|
||||
default y
|
||||
depends on DEBUG_KMEMLEAK
|
||||
help
|
||||
Depending on the cpu, kmemleak scan may be cpu intensive and can
|
||||
stall user tasks at times. This option enables/disables automatic
|
||||
kmemleak scan at boot up.
|
||||
|
||||
Say N here to disable kmemleak auto scan thread to stop automatic
|
||||
scanning. Disabling this option disables automatic reporting of
|
||||
memory leaks.
|
||||
|
||||
If unsure, say Y.
|
||||
|
||||
config DEBUG_STACK_USAGE
|
||||
bool "Stack utilization instrumentation"
|
||||
depends on DEBUG_KERNEL && !IA64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue