Blame view

mm/Kconfig.debug 1014 Bytes
ee3b4290a   Akinobu Mita   generic debug pag...
1
2
3
4
  config DEBUG_PAGEALLOC
  	bool "Debug page memory allocations"
  	depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC
  	depends on !HIBERNATION || !PPC && !SPARC
7d46d9e6d   Vegard Nossum   kmemcheck: enable...
5
  	depends on !KMEMCHECK
ee3b4290a   Akinobu Mita   generic debug pag...
6
7
8
  	---help---
  	  Unmap pages from the kernel linear mapping after free_pages().
  	  This results in a large slowdown, but helps to find certain types
22f8b4582   Frans Pop   trivial: improve ...
9
  	  of memory corruption.
ee3b4290a   Akinobu Mita   generic debug pag...
10

6a11f75b6   Akinobu Mita   generic debug pag...
11
12
13
14
15
16
17
18
19
  config WANT_PAGE_DEBUG_FLAGS
  	bool
  
  config PAGE_POISONING
  	bool "Debug page memory allocations"
  	depends on DEBUG_KERNEL && !ARCH_SUPPORTS_DEBUG_PAGEALLOC
  	depends on !HIBERNATION
  	select DEBUG_PAGEALLOC
  	select WANT_PAGE_DEBUG_FLAGS
22f8b4582   Frans Pop   trivial: improve ...
20
  	---help---
6a11f75b6   Akinobu Mita   generic debug pag...
21
22
  	   Fill the pages with poison patterns after free_pages() and verify
  	   the patterns before alloc_pages(). This results in a large slowdown,
22f8b4582   Frans Pop   trivial: improve ...
23
  	   but helps to find certain types of memory corruption.
6a11f75b6   Akinobu Mita   generic debug pag...
24

22f8b4582   Frans Pop   trivial: improve ...
25
26
27
  	   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.