Kconfig.debug 3.8 KB

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