aboutsummaryrefslogtreecommitdiffstats
path: root/mm/Kconfig.debug
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2009-05-08 21:29:27 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-05-08 21:29:27 -0400
commitd585a021c0b10b0477d6b608c53e1feb8cde0507 (patch)
tree5ca059da1db7f15d4b29427644ad9c08270c885c /mm/Kconfig.debug
parent84e5b0d00f8f84c4ae226be131d4bebbcee88bd3 (diff)
parent091bf7624d1c90cec9e578a18529f615213ff847 (diff)
Merge commit 'v2.6.30-rc5' into next
Diffstat (limited to 'mm/Kconfig.debug')
-rw-r--r--mm/Kconfig.debug26
1 files changed, 26 insertions, 0 deletions
diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug
new file mode 100644
index 000000000000..bb01e298f260
--- /dev/null
+++ b/mm/Kconfig.debug
@@ -0,0 +1,26 @@
1config 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
10config WANT_PAGE_DEBUG_FLAGS
11 bool
12
13config 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.