blob: 0b9a630dc812c1106522e5ce59e38c03201a8dcb [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3#bool 'Debug kmalloc/kfree' CONFIG_DEBUG_MALLOC
4config PROFILING
5 bool "Kernel profiling support"
6
7config SYSTEM_PROFILER
Adrian Bunk49f9ebc2005-09-03 15:57:10 -07008 bool "System profiling support"
9
10source "lib/Kconfig.debug"
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12config ETRAX_KGDB
13 bool "Use kernel GDB debugger"
Adrian Bunk49f9ebc2005-09-03 15:57:10 -070014 depends on DEBUG_KERNEL
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 ---help---
16 The CRIS version of gdb can be used to remotely debug a running
17 Linux kernel via the serial debug port. Provided you have gdb-cris
18 installed, run gdb-cris vmlinux, then type
19
20 (gdb) set remotebaud 115200 <- kgdb uses 115200 as default
21 (gdb) target remote /dev/ttyS0 <- maybe you use another port
22
23 This should connect you to your booted kernel (or boot it now if you
24 didn't before). The kernel halts when it boots, waiting for gdb if
25 this option is turned on!
26
27
Mikael Starvik3e41d652005-07-27 11:44:30 -070028config DEBUG_NMI_OOPS
Adrian Bunk49f9ebc2005-09-03 15:57:10 -070029 bool "NMI causes oops printout"
30 depends on DEBUG_KERNEL
31 help
32 If the system locks up without any debug information you can say Y
33 here to make it possible to dump an OOPS with an external NMI.
34
Jesper Nilssonb4e8a182010-08-04 17:42:43 +020035config NO_SEGFAULT_TERMINATION
36 bool "Keep segfaulting processes"
37 help
38 Place segfaulting user mode processes on a wait queue instead of
39 delivering a terminating SIGSEGV to allow debugging with gdb.
40
Linus Torvalds1da177e2005-04-16 15:20:36 -070041endmenu