Kconfig.debug 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config EARLY_PRINTK
  4. bool "Early printk" if EMBEDDED && DEBUG_KERNEL
  5. default y
  6. help
  7. Write kernel log output directly into the VGA buffer or to a serial
  8. port.
  9. This is useful for kernel debugging when your machine crashes very
  10. early before the console code is initialized. For normal operation
  11. it is not recommended because it looks ugly and doesn't cooperate
  12. with klogd/syslogd or the X server. You should normally N here,
  13. unless you want to debug such a crash.
  14. config DEBUG_STACKOVERFLOW
  15. bool "Check for stack overflows"
  16. depends on DEBUG_KERNEL
  17. help
  18. This option will cause messages to be printed if free stack space
  19. drops below a certain limit.
  20. config DEBUG_STACK_USAGE
  21. bool "Stack utilization instrumentation"
  22. depends on DEBUG_KERNEL
  23. help
  24. Enables the display of the minimum amount of free stack which each
  25. task has ever had available in the sysrq-T and sysrq-P debug output.
  26. This option will slow down process creation somewhat.
  27. config STACK_BACKTRACE_COLS
  28. int "Stack backtraces per line" if DEBUG_KERNEL
  29. range 1 3
  30. default 2
  31. help
  32. Selects how many stack backtrace entries per line to display.
  33. This can save screen space when displaying traces.
  34. comment "Page alloc debug is incompatible with Software Suspend on i386"
  35. depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
  36. config DEBUG_PAGEALLOC
  37. bool "Debug page memory allocations"
  38. depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND && !HUGETLBFS
  39. help
  40. Unmap pages from the kernel linear mapping after free_pages().
  41. This results in a large slowdown, but helps to find certain types
  42. of memory corruptions.
  43. config DEBUG_RODATA
  44. bool "Write protect kernel read-only data structures"
  45. depends on DEBUG_KERNEL
  46. help
  47. Mark the kernel read-only data as write-protected in the pagetables,
  48. in order to catch accidental (and incorrect) writes to such const
  49. data. This option may have a slight performance impact because a
  50. portion of the kernel code won't be covered by a 2MB TLB anymore.
  51. If in doubt, say "N".
  52. config 4KSTACKS
  53. bool "Use 4Kb for kernel stacks instead of 8Kb"
  54. depends on DEBUG_KERNEL
  55. help
  56. If you say Y here the kernel will use a 4Kb stacksize for the
  57. kernel stack attached to each process/thread. This facilitates
  58. running more threads on a system and also reduces the pressure
  59. on the VM subsystem for higher order allocations. This option
  60. will also use IRQ stacks to compensate for the reduced stackspace.
  61. config X86_FIND_SMP_CONFIG
  62. bool
  63. depends on X86_LOCAL_APIC || X86_VOYAGER
  64. default y
  65. config X86_MPPARSE
  66. bool
  67. depends on X86_LOCAL_APIC && !X86_VISWS
  68. default y
  69. config DOUBLEFAULT
  70. default y
  71. bool "Enable doublefault exception handler" if EMBEDDED
  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. endmenu