blob: e341a129da8046b3338deaa2c22c3dad796b341a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config DEBUG_STACKOVERFLOW
6 bool "Check for stack overflows"
7 depends on DEBUG_KERNEL
8
9config KPROBES
10 bool "Kprobes"
11 depends on DEBUG_KERNEL
12 help
13 Kprobes allows you to trap at almost any kernel address and
14 execute a callback function. register_kprobe() establishes
15 a probepoint and specifies the callback. Kprobes is useful
16 for kernel debugging, non-intrusive instrumentation and testing.
17 If in doubt, say "N".
18
19config DEBUG_STACK_USAGE
20 bool "Stack utilization instrumentation"
21 depends on DEBUG_KERNEL
22 help
23 Enables the display of the minimum amount of free stack which each
24 task has ever had available in the sysrq-T and sysrq-P debug output.
25
26 This option will slow down process creation somewhat.
27
28config DEBUGGER
29 bool "Enable debugger hooks"
30 depends on DEBUG_KERNEL
31 help
32 Include in-kernel hooks for kernel debuggers. Unless you are
33 intending to debug the kernel, say N here.
34
35config XMON
36 bool "Include xmon kernel debugger"
37 depends on DEBUGGER && !PPC_ISERIES
38 help
39 Include in-kernel hooks for the xmon kernel monitor/debugger.
40 Unless you are intending to debug the kernel, say N here.
41
42config XMON_DEFAULT
43 bool "Enable xmon by default"
44 depends on XMON
45
46config PPCDBG
47 bool "Include PPCDBG realtime debugging"
48 depends on DEBUG_KERNEL
49
50config IRQSTACKS
51 bool "Use separate kernel stacks when processing interrupts"
52 help
53 If you say Y here the kernel will use separate kernel stacks
54 for handling hard and soft interrupts. This can help avoid
55 overflowing the process kernel stacks.
56
57endmenu