Kconfig.debug 954 B

1234567891011121314151617181920212223242526
  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. config WANT_PAGE_DEBUG_FLAGS
  10. bool
  11. config PAGE_POISONING
  12. bool "Debug page memory allocations"
  13. depends on DEBUG_KERNEL && !ARCH_SUPPORTS_DEBUG_PAGEALLOC
  14. depends on !HIBERNATION
  15. select DEBUG_PAGEALLOC
  16. select WANT_PAGE_DEBUG_FLAGS
  17. help
  18. Fill the pages with poison patterns after free_pages() and verify
  19. the patterns before alloc_pages(). This results in a large slowdown,
  20. but helps to find certain types of memory corruptions.
  21. This option cannot enalbe with hibernation. Otherwise, it will get
  22. wrong messages for memory corruption because the free pages are not
  23. saved to the suspend image.