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