Blame view
mm/Kconfig.debug
908 Bytes
ee3b4290a
|
1 2 |
config DEBUG_PAGEALLOC bool "Debug page memory allocations" |
7bc32f6f9
|
3 4 |
depends on DEBUG_KERNEL depends on !HIBERNATION || ARCH_SUPPORTS_DEBUG_PAGEALLOC && !PPC && !SPARC |
7d46d9e6d
|
5 |
depends on !KMEMCHECK |
7bc32f6f9
|
6 |
select PAGE_POISONING if !ARCH_SUPPORTS_DEBUG_PAGEALLOC |
ee3b4290a
|
7 8 9 |
---help--- Unmap pages from the kernel linear mapping after free_pages(). This results in a large slowdown, but helps to find certain types |
22f8b4582
|
10 |
of memory corruption. |
ee3b4290a
|
11 |
|
7bc32f6f9
|
12 13 14 15 16 17 |
For architectures which don't enable ARCH_SUPPORTS_DEBUG_PAGEALLOC, fill the pages with poison patterns after free_pages() and verify the patterns before alloc_pages(). Additionally, this option cannot be enabled in combination with hibernation as that would result in incorrect warnings of memory corruption after a resume because free pages are not saved to the suspend image. |
6a11f75b6
|
18 19 20 21 |
config WANT_PAGE_DEBUG_FLAGS bool config PAGE_POISONING |
7bc32f6f9
|
22 |
bool |
6a11f75b6
|
23 |
select WANT_PAGE_DEBUG_FLAGS |