Kconfig.debug 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. config KPROBES
  18. bool "Kprobes"
  19. depends on DEBUG_KERNEL
  20. help
  21. Kprobes allows you to trap at almost any kernel address and
  22. execute a callback function. register_kprobe() establishes
  23. a probepoint and specifies the callback. Kprobes is useful
  24. for kernel debugging, non-intrusive instrumentation and testing.
  25. If in doubt, say "N".
  26. config DEBUG_STACK_USAGE
  27. bool "Stack utilization instrumentation"
  28. depends on DEBUG_KERNEL
  29. help
  30. Enables the display of the minimum amount of free stack which each
  31. task has ever had available in the sysrq-T and sysrq-P debug output.
  32. This option will slow down process creation somewhat.
  33. comment "Page alloc debug is incompatible with Software Suspend on i386"
  34. depends on DEBUG_KERNEL && SOFTWARE_SUSPEND
  35. config DEBUG_PAGEALLOC
  36. bool "Page alloc debugging"
  37. depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND
  38. help
  39. Unmap pages from the kernel linear mapping after free_pages().
  40. This results in a large slowdown, but helps to find certain types
  41. of memory corruptions.
  42. config 4KSTACKS
  43. bool "Use 4Kb for kernel stacks instead of 8Kb"
  44. depends on DEBUG_KERNEL
  45. help
  46. If you say Y here the kernel will use a 4Kb stacksize for the
  47. kernel stack attached to each process/thread. This facilitates
  48. running more threads on a system and also reduces the pressure
  49. on the VM subsystem for higher order allocations. This option
  50. will also use IRQ stacks to compensate for the reduced stackspace.
  51. config X86_FIND_SMP_CONFIG
  52. bool
  53. depends on X86_LOCAL_APIC || X86_VOYAGER
  54. default y
  55. config X86_MPPARSE
  56. bool
  57. depends on X86_LOCAL_APIC && !X86_VISWS
  58. default y
  59. endmenu