Kconfig.debug 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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_EXTRA_FLAGS
  20. string "Additional compiler arguments when building with '-g'"
  21. depends on DEBUG_INFO
  22. default ""
  23. help
  24. Debug info can be large, and flags like
  25. `-femit-struct-debug-baseonly' can reduce the kernel file
  26. size and build time noticeably. Such flags are often
  27. helpful if the main use of debug info is line number info.
  28. endmenu