mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mm/page_owner: move config option to mm/Kconfig.debug
Move the PAGE_OWNER option from submenu "Compile-time checks and compiler options" to dedicated submenu "Memory Debugging". Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Changbin Du <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
43cca0b1c5
commit
8aa49762db
2 changed files with 17 additions and 17 deletions
|
|
@ -39,6 +39,23 @@ config DEBUG_PAGEALLOC_ENABLE_DEFAULT
|
|||
Enable debug page memory allocations by default? This value
|
||||
can be overridden by debug_pagealloc=off|on.
|
||||
|
||||
config PAGE_OWNER
|
||||
bool "Track page owner"
|
||||
depends on DEBUG_KERNEL && STACKTRACE_SUPPORT
|
||||
select DEBUG_FS
|
||||
select STACKTRACE
|
||||
select STACKDEPOT
|
||||
select PAGE_EXTENSION
|
||||
help
|
||||
This keeps track of what call chain is the owner of a page, may
|
||||
help to find bare alloc_page(s) leaks. Even if you include this
|
||||
feature on your build, it is disabled in default. You should pass
|
||||
"page_owner=on" to boot parameter in order to enable it. Eats
|
||||
a fair amount of memory if enabled. See tools/vm/page_owner_sort.c
|
||||
for user-space helper.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config PAGE_POISONING
|
||||
bool "Poison pages after freeing"
|
||||
select PAGE_POISONING_NO_SANITY if HIBERNATION
|
||||
|
|
|
|||
Loading…
Reference in a new issue