Kconfig.debug 2.1 KB

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