Kconfig.debug 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 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 DEBUG_STACKOVERFLOW
  34. bool "Check for stack overflows"
  35. depends on DEBUG_KERNEL
  36. help
  37. This option will cause messages to be printed if free stack space
  38. drops below a certain limit.
  39. config DEBUG_STACK_USAGE
  40. bool "Stack utilization instrumentation"
  41. depends on DEBUG_KERNEL
  42. help
  43. Enables the display of the minimum amount of free stack which each
  44. task has ever had available in the sysrq-T and sysrq-P debug output.
  45. This option will slow down process creation somewhat.
  46. #config X86_REMOTE_DEBUG
  47. # bool "kgdb debugging stub"
  48. endmenu