Kconfig.debug 977 B

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