Kconfig.debug 2.3 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 KPROBES
  21. bool "Kprobes"
  22. depends on DEBUG_KERNEL
  23. help
  24. Kprobes allows you to trap at almost any kernel address and
  25. execute a callback function. register_kprobe() establishes
  26. a probepoint and specifies the callback. Kprobes is useful
  27. for kernel debugging, non-intrusive instrumentation and testing.
  28. If in doubt, say "N".
  29. config DEBUG_STACK_USAGE
  30. bool "Stack utilization instrumentation"
  31. depends on DEBUG_KERNEL
  32. help
  33. Enables the display of the minimum amount of free stack which each
  34. task has ever had available in the sysrq-T and sysrq-P debug output.
  35. This option will slow down process creation somewhat.
  36. comment "Page alloc debug is incompatible with Software Suspend on i386"
  37. depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
  38. config DEBUG_PAGEALLOC
  39. bool "Page alloc debugging"
  40. depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND
  41. help
  42. Unmap pages from the kernel linear mapping after free_pages().
  43. This results in a large slowdown, but helps to find certain types
  44. of memory corruptions.
  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