Kconfig.debug 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. comment "Page alloc debug is incompatible with Software Suspend on i386"
  28. depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
  29. config DEBUG_PAGEALLOC
  30. bool "Page alloc debugging"
  31. depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND
  32. help
  33. Unmap pages from the kernel linear mapping after free_pages().
  34. This results in a large slowdown, but helps to find certain types
  35. of memory corruptions.
  36. config DEBUG_RODATA
  37. bool "Write protect kernel read-only data structures"
  38. depends on DEBUG_KERNEL
  39. help
  40. Mark the kernel read-only data as write-protected in the pagetables,
  41. in order to catch accidental (and incorrect) writes to such const
  42. data. This option may have a slight performance impact because a
  43. portion of the kernel code won't be covered by a 2MB TLB anymore.
  44. If in doubt, say "N".
  45. config 4KSTACKS
  46. bool "Use 4Kb for kernel stacks instead of 8Kb"
  47. depends on DEBUG_KERNEL
  48. help
  49. If you say Y here the kernel will use a 4Kb stacksize for the
  50. kernel stack attached to each process/thread. This facilitates
  51. running more threads on a system and also reduces the pressure
  52. on the VM subsystem for higher order allocations. This option
  53. will also use IRQ stacks to compensate for the reduced stackspace.
  54. config X86_FIND_SMP_CONFIG
  55. bool
  56. depends on X86_LOCAL_APIC || X86_VOYAGER
  57. default y
  58. config X86_MPPARSE
  59. bool
  60. depends on X86_LOCAL_APIC && !X86_VISWS
  61. default y
  62. endmenu