Kconfig.debug 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config DEBUG_RODATA
  4. bool "Write protect kernel read-only data structures"
  5. depends on DEBUG_KERNEL
  6. help
  7. Mark the kernel read-only data as write-protected in the pagetables,
  8. in order to catch accidental (and incorrect) writes to such const data.
  9. This option may have a slight performance impact because a portion
  10. of the kernel code won't be covered by a 2MB TLB anymore.
  11. If in doubt, say "N".
  12. config IOMMU_DEBUG
  13. depends on GART_IOMMU && DEBUG_KERNEL
  14. bool "Enable IOMMU debugging"
  15. help
  16. Force the IOMMU to on even when you have less than 4GB of
  17. memory and add debugging code. On overflow always panic. And
  18. allow to enable IOMMU leak tracing. Can be disabled at boot
  19. time with iommu=noforce. This will also enable scatter gather
  20. list merging. Currently not recommended for production
  21. code. When you use it make sure you have a big enough
  22. IOMMU/AGP aperture. Most of the options enabled by this can
  23. be set more finegrained using the iommu= command line
  24. options. See Documentation/x86_64/boot-options.txt for more
  25. details.
  26. config IOMMU_LEAK
  27. bool "IOMMU leak tracing"
  28. depends on DEBUG_KERNEL
  29. depends on IOMMU_DEBUG
  30. help
  31. Add a simple leak tracer to the IOMMU code. This is useful when you
  32. are debugging a buggy device driver that leaks IOMMU mappings.
  33. #config X86_REMOTE_DEBUG
  34. # bool "kgdb debugging stub"
  35. endmenu