X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=mm%2FKconfig.debug;h=af7cfb43d2f0526019b86fa35a75202aae222d1c;hb=4b42af81f0d7f95dff320f47d99c201925f406f5;hp=c8d62d49a44e1bd8ec15e42d321da762b58c3b45;hpb=6a11f75b6a17b5d9ac5025f8d048382fd1f47377;p=safe%2Fjmp%2Flinux-2.6 diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index c8d62d4..af7cfb4 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -1,3 +1,13 @@ +config DEBUG_PAGEALLOC + bool "Debug page memory allocations" + depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC + depends on !HIBERNATION || !PPC && !SPARC + depends on !KMEMCHECK + ---help--- + Unmap pages from the kernel linear mapping after free_pages(). + This results in a large slowdown, but helps to find certain types + of memory corruption. + config WANT_PAGE_DEBUG_FLAGS bool @@ -7,11 +17,11 @@ config PAGE_POISONING depends on !HIBERNATION select DEBUG_PAGEALLOC select WANT_PAGE_DEBUG_FLAGS - help + ---help--- Fill the pages with poison patterns after free_pages() and verify the patterns before alloc_pages(). This results in a large slowdown, - but helps to find certain types of memory corruptions. + but helps to find certain types of memory corruption. - This option cannot enalbe with hibernation. Otherwise, it will get - wrong messages for memory corruption because the free pages are not - saved to the suspend image. + 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.