Kconfig.debug 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. # !SMP for now because the context switch early causes GPF in segment reloading
  4. # and the GS base checking does the wrong thing then, causing a hang.
  5. config CHECKING
  6. bool "Additional run-time checks"
  7. depends on DEBUG_KERNEL && !SMP
  8. help
  9. Enables some internal consistency checks for kernel debugging.
  10. You should normally say N.
  11. config INIT_DEBUG
  12. bool "Debug __init statements"
  13. depends on DEBUG_KERNEL
  14. help
  15. Fill __init and __initdata at the end of boot. This helps debugging
  16. illegal uses of __init and __initdata after initialization.
  17. config IOMMU_DEBUG
  18. depends on GART_IOMMU && DEBUG_KERNEL
  19. bool "Enable IOMMU debugging"
  20. help
  21. Force the IOMMU to on even when you have less than 4GB of
  22. memory and add debugging code. On overflow always panic. And
  23. allow to enable IOMMU leak tracing. Can be disabled at boot
  24. time with iommu=noforce. This will also enable scatter gather
  25. list merging. Currently not recommended for production
  26. code. When you use it make sure you have a big enough
  27. IOMMU/AGP aperture. Most of the options enabled by this can
  28. be set more finegrained using the iommu= command line
  29. options. See Documentation/x86_64/boot-options.txt for more
  30. details.
  31. config KPROBES
  32. bool "Kprobes"
  33. depends on DEBUG_KERNEL
  34. help
  35. Kprobes allows you to trap at almost any kernel address and
  36. execute a callback function. register_kprobe() establishes
  37. a probepoint and specifies the callback. Kprobes is useful
  38. for kernel debugging, non-intrusive instrumentation and testing.
  39. If in doubt, say "N".
  40. config IOMMU_LEAK
  41. bool "IOMMU leak tracing"
  42. depends on DEBUG_KERNEL
  43. depends on IOMMU_DEBUG
  44. help
  45. Add a simple leak tracer to the IOMMU code. This is useful when you
  46. are debugging a buggy device driver that leaks IOMMU mappings.
  47. #config X86_REMOTE_DEBUG
  48. # bool "kgdb debugging stub"
  49. endmenu