blob: ddbfc3322d7f461e693614405ac5ce2aee930148 [file] [log] [blame]
Chris Metcalf867e3592010-05-28 23:09:12 -04001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config EARLY_PRINTK
David Rientjes6a108a12011-01-20 14:44:16 -08006 bool "Early printk" if EXPERT && DEBUG_KERNEL
Chris Metcalf867e3592010-05-28 23:09:12 -04007 default y
8 help
9 Write kernel log output directly via the hypervisor console.
10
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.
16
17config DEBUG_STACKOVERFLOW
18 bool "Check for stack overflows"
19 depends on DEBUG_KERNEL
20 help
21 This option will cause messages to be printed if free stack space
22 drops below a certain limit.
23
Chris Metcalf867e3592010-05-28 23:09:12 -040024config DEBUG_EXTRA_FLAGS
25 string "Additional compiler arguments when building with '-g'"
26 depends on DEBUG_INFO
27 default ""
28 help
29 Debug info can be large, and flags like
30 `-femit-struct-debug-baseonly' can reduce the kernel file
31 size and build time noticeably. Such flags are often
32 helpful if the main use of debug info is line number info.
33
34endmenu