Kconfig.debug 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. menu "Kernel hacking"
  2. source "lib/Kconfig.debug"
  3. config EARLY_PRINTK
  4. bool "Early printk" if EXPERT && DEBUG_KERNEL
  5. default y
  6. help
  7. Write kernel log output directly via the hypervisor console.
  8. This is useful for kernel debugging when your machine crashes very
  9. early before the console code is initialized. For normal operation
  10. it is not recommended because it looks ugly and doesn't cooperate
  11. with klogd/syslogd. You should normally N here,
  12. unless you want to debug such a crash.
  13. config DEBUG_STACKOVERFLOW
  14. bool "Check for stack overflows"
  15. depends on DEBUG_KERNEL
  16. help
  17. This option will cause messages to be printed if free stack space
  18. drops below a certain limit.
  19. config DEBUG_STACK_USAGE
  20. bool "Stack utilization instrumentation"
  21. depends on DEBUG_KERNEL
  22. help
  23. Enables the display of the minimum amount of free stack which each
  24. task has ever had available in the sysrq-T and sysrq-P debug output.
  25. This option will slow down process creation somewhat.
  26. config DEBUG_EXTRA_FLAGS
  27. string "Additional compiler arguments when building with '-g'"
  28. depends on DEBUG_INFO
  29. default ""
  30. help
  31. Debug info can be large, and flags like
  32. `-femit-struct-debug-baseonly' can reduce the kernel file
  33. size and build time noticeably. Such flags are often
  34. helpful if the main use of debug info is line number info.
  35. endmenu