Akinobu Mita | ee3b429 | 2009-04-02 16:56:30 -0700 | [diff] [blame] | 1 | config DEBUG_PAGEALLOC |
| 2 | bool "Debug page memory allocations" |
| 3 | depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC |
| 4 | depends on !HIBERNATION || !PPC && !SPARC |
| 5 | ---help--- |
| 6 | Unmap pages from the kernel linear mapping after free_pages(). |
| 7 | This results in a large slowdown, but helps to find certain types |
| 8 | of memory corruptions. |
| 9 | |
Akinobu Mita | 6a11f75 | 2009-03-31 15:23:17 -0700 | [diff] [blame] | 10 | config WANT_PAGE_DEBUG_FLAGS |
| 11 | bool |
| 12 | |
| 13 | config PAGE_POISONING |
| 14 | bool "Debug page memory allocations" |
| 15 | depends on DEBUG_KERNEL && !ARCH_SUPPORTS_DEBUG_PAGEALLOC |
| 16 | depends on !HIBERNATION |
| 17 | select DEBUG_PAGEALLOC |
| 18 | select WANT_PAGE_DEBUG_FLAGS |
| 19 | help |
| 20 | Fill the pages with poison patterns after free_pages() and verify |
| 21 | the patterns before alloc_pages(). This results in a large slowdown, |
| 22 | but helps to find certain types of memory corruptions. |
| 23 | |
| 24 | This option cannot enalbe with hibernation. Otherwise, it will get |
| 25 | wrong messages for memory corruption because the free pages are not |
| 26 | saved to the suspend image. |