blob: 0034b654995df0ea879c5152df0d5b4ff1d8b779 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config EARLY_PRINTK
6 bool "Early printk"
7 depends on EMBEDDED && DEBUG_KERNEL
8 default n
9 help
10 Write kernel log output directly into the VGA buffer or to a serial
11 port.
12
13 This is useful for kernel debugging when your machine crashes very
14 early before the console code is initialized. For normal operation
15 it is not recommended because it looks ugly and doesn't cooperate
16 with klogd/syslogd or the X server. You should normally N here,
17 unless you want to debug such a crash.
18
19config DEBUG_STACKOVERFLOW
20 bool "Check for stack overflows"
21 depends on DEBUG_KERNEL
22
23config DEBUG_PAGEALLOC
24 bool "Page alloc debugging"
25 depends on DEBUG_KERNEL
26 help
27 Unmap pages from the kernel linear mapping after free_pages().
28 This results in a large slowdown, but helps to find certain types
29 of memory corruptions.
30
31config GDBSTUB
32 bool "Remote GDB kernel debugging"
33 depends on DEBUG_KERNEL
34 select DEBUG_INFO
35 select FRAME_POINTER
36 help
37 If you say Y here, it will be possible to remotely debug the kernel
38 using gdb. This enlarges your kernel ELF image disk size by several
39 megabytes and requires a machine with more than 16 MB, better 32 MB
40 RAM to avoid excessive linking time. This is only useful for kernel
41 hackers. If unsure, say N.
42
43choice
44 prompt "GDB stub port"
45 default GDBSTUB_UART1
46 depends on GDBSTUB
47 help
48 Select the on-CPU port used for GDB-stub
49
50config GDBSTUB_UART0
51 bool "/dev/ttyS0"
52
53config GDBSTUB_UART1
54 bool "/dev/ttyS1"
55
56endchoice
57
58config GDBSTUB_IMMEDIATE
59 bool "Break into GDB stub immediately"
60 depends on GDBSTUB
61 help
62 If you say Y here, GDB stub will break into the program as soon as
63 possible, leaving the program counter at the beginning of
64 start_kernel() in init/main.c.
65
66config GDB_CONSOLE
67 bool "Console output to GDB"
68 depends on GDBSTUB
69 help
70 If you are using GDB for remote debugging over a serial port and
71 would like kernel messages to be formatted into GDB $O packets so
72 that GDB prints them as program output, say 'Y'.
73
74endmenu