Kconfig.debug 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. bool
  4. default y
  5. source "lib/Kconfig.debug"
  6. config DEBUG_RODATA
  7. bool "Write protect kernel read-only data structures"
  8. depends on DEBUG_KERNEL
  9. help
  10. Mark the kernel read-only data as write-protected in the pagetables,
  11. in order to catch accidental (and incorrect) writes to such const data.
  12. This option may have a slight performance impact because a portion
  13. of the kernel code won't be covered by a 2MB TLB anymore.
  14. If in doubt, say "N".
  15. config IOMMU_DEBUG
  16. depends on IOMMU && DEBUG_KERNEL
  17. bool "Enable IOMMU debugging"
  18. help
  19. Force the IOMMU to on even when you have less than 4GB of
  20. memory and add debugging code. On overflow always panic. And
  21. allow to enable IOMMU leak tracing. Can be disabled at boot
  22. time with iommu=noforce. This will also enable scatter gather
  23. list merging. Currently not recommended for production
  24. code. When you use it make sure you have a big enough
  25. IOMMU/AGP aperture. Most of the options enabled by this can
  26. be set more finegrained using the iommu= command line
  27. options. See Documentation/x86_64/boot-options.txt for more
  28. details.
  29. config IOMMU_LEAK
  30. bool "IOMMU leak tracing"
  31. depends on DEBUG_KERNEL
  32. depends on IOMMU_DEBUG
  33. help
  34. Add a simple leak tracer to the IOMMU code. This is useful when you
  35. are debugging a buggy device driver that leaks IOMMU mappings.
  36. config DEBUG_STACKOVERFLOW
  37. bool "Check for stack overflows"
  38. depends on DEBUG_KERNEL
  39. help
  40. This option will cause messages to be printed if free stack space
  41. drops below a certain limit.
  42. config DEBUG_STACK_USAGE
  43. bool "Stack utilization instrumentation"
  44. depends on DEBUG_KERNEL
  45. help
  46. Enables the display of the minimum amount of free stack which each
  47. task has ever had available in the sysrq-T and sysrq-P debug output.
  48. This option will slow down process creation somewhat.
  49. #config X86_REMOTE_DEBUG
  50. # bool "kgdb debugging stub"
  51. endmenu