Kconfig.debug 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. def_bool y
  4. source "lib/Kconfig.debug"
  5. config EARLY_PRINTK
  6. bool "Early printk" if EMBEDDED && DEBUG_KERNEL && X86_32
  7. default y
  8. help
  9. Write kernel log output directly into the VGA buffer or to a serial
  10. port.
  11. This is useful for kernel debugging when your machine crashes very
  12. early before the console code is initialized. For normal operation
  13. it is not recommended because it looks ugly and doesn't cooperate
  14. with klogd/syslogd or the X server. You should normally N here,
  15. unless you want to debug such a crash.
  16. config DEBUG_STACKOVERFLOW
  17. bool "Check for stack overflows"
  18. depends on DEBUG_KERNEL
  19. help
  20. This option will cause messages to be printed if free stack space
  21. drops below a certain limit.
  22. config DEBUG_STACK_USAGE
  23. bool "Stack utilization instrumentation"
  24. depends on DEBUG_KERNEL
  25. help
  26. Enables the display of the minimum amount of free stack which each
  27. task has ever had available in the sysrq-T and sysrq-P debug output.
  28. This option will slow down process creation somewhat.
  29. comment "Page alloc debug is incompatible with Software Suspend on i386"
  30. depends on DEBUG_KERNEL && HIBERNATION
  31. depends on X86_32
  32. config DEBUG_PAGEALLOC
  33. bool "Debug page memory allocations"
  34. depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS
  35. depends on X86_32
  36. help
  37. Unmap pages from the kernel linear mapping after free_pages().
  38. This results in a large slowdown, but helps to find certain types
  39. of memory corruptions.
  40. config DEBUG_RODATA
  41. bool "Write protect kernel read-only data structures"
  42. depends on DEBUG_KERNEL
  43. help
  44. Mark the kernel read-only data as write-protected in the pagetables,
  45. in order to catch accidental (and incorrect) writes to such const
  46. data. This option may have a slight performance impact because a
  47. portion of the kernel code won't be covered by a 2MB TLB anymore.
  48. If in doubt, say "N".
  49. config 4KSTACKS
  50. bool "Use 4Kb for kernel stacks instead of 8Kb"
  51. depends on DEBUG_KERNEL
  52. depends on X86_32
  53. help
  54. If you say Y here the kernel will use a 4Kb stacksize for the
  55. kernel stack attached to each process/thread. This facilitates
  56. running more threads on a system and also reduces the pressure
  57. on the VM subsystem for higher order allocations. This option
  58. will also use IRQ stacks to compensate for the reduced stackspace.
  59. config X86_FIND_SMP_CONFIG
  60. def_bool y
  61. depends on X86_LOCAL_APIC || X86_VOYAGER
  62. depends on X86_32
  63. config X86_MPPARSE
  64. def_bool y
  65. depends on X86_LOCAL_APIC && !X86_VISWS
  66. depends on X86_32
  67. config DOUBLEFAULT
  68. default y
  69. bool "Enable doublefault exception handler" if EMBEDDED
  70. depends on X86_32
  71. help
  72. This option allows trapping of rare doublefault exceptions that
  73. would otherwise cause a system to silently reboot. Disabling this
  74. option saves about 4k and might cause you much additional grey
  75. hair.
  76. config IOMMU_DEBUG
  77. bool "Enable IOMMU debugging"
  78. depends on GART_IOMMU && DEBUG_KERNEL
  79. depends on X86_64
  80. help
  81. Force the IOMMU to on even when you have less than 4GB of
  82. memory and add debugging code. On overflow always panic. And
  83. allow to enable IOMMU leak tracing. Can be disabled at boot
  84. time with iommu=noforce. This will also enable scatter gather
  85. list merging. Currently not recommended for production
  86. code. When you use it make sure you have a big enough
  87. IOMMU/AGP aperture. Most of the options enabled by this can
  88. be set more finegrained using the iommu= command line
  89. options. See Documentation/x86_64/boot-options.txt for more
  90. details.
  91. config IOMMU_LEAK
  92. bool "IOMMU leak tracing"
  93. depends on DEBUG_KERNEL
  94. depends on IOMMU_DEBUG
  95. help
  96. Add a simple leak tracer to the IOMMU code. This is useful when you
  97. are debugging a buggy device driver that leaks IOMMU mappings.
  98. endmenu