Kconfig.debug 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. menu "Kernel hacking"
  2. config TRACE_IRQFLAGS_SUPPORT
  3. bool
  4. default y
  5. source "lib/Kconfig.debug"
  6. config EARLY_PRINTK
  7. bool "Early printk" if EMBEDDED && DEBUG_KERNEL
  8. default y
  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. config DEBUG_PAGEALLOC
  33. bool "Debug page memory allocations"
  34. depends on DEBUG_KERNEL && !HIBERNATION && !HUGETLBFS
  35. help
  36. Unmap pages from the kernel linear mapping after free_pages().
  37. This results in a large slowdown, but helps to find certain types
  38. of memory corruptions.
  39. config DEBUG_RODATA
  40. bool "Write protect kernel read-only data structures"
  41. depends on DEBUG_KERNEL
  42. help
  43. Mark the kernel read-only data as write-protected in the pagetables,
  44. in order to catch accidental (and incorrect) writes to such const
  45. data. This option may have a slight performance impact because a
  46. portion of the kernel code won't be covered by a 2MB TLB anymore.
  47. If in doubt, say "N".
  48. config 4KSTACKS
  49. bool "Use 4Kb for kernel stacks instead of 8Kb"
  50. depends on DEBUG_KERNEL
  51. help
  52. If you say Y here the kernel will use a 4Kb stacksize for the
  53. kernel stack attached to each process/thread. This facilitates
  54. running more threads on a system and also reduces the pressure
  55. on the VM subsystem for higher order allocations. This option
  56. will also use IRQ stacks to compensate for the reduced stackspace.
  57. config X86_FIND_SMP_CONFIG
  58. bool
  59. depends on X86_LOCAL_APIC || X86_VOYAGER
  60. default y
  61. config X86_MPPARSE
  62. bool
  63. depends on X86_LOCAL_APIC && !X86_VISWS
  64. default y
  65. config DOUBLEFAULT
  66. default y
  67. bool "Enable doublefault exception handler" if EMBEDDED
  68. help
  69. This option allows trapping of rare doublefault exceptions that
  70. would otherwise cause a system to silently reboot. Disabling this
  71. option saves about 4k and might cause you much additional grey
  72. hair.
  73. endmenu