blob: f16a5030527bd1e8f8818dc7337d49ba049054f3 [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
Jesper Juhle6857522005-05-05 16:15:12 -07008 help
9 This option will cause messages to be printed if free stack space
10 drops below a certain limit.
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12config KPROBES
13 bool "Kprobes"
14 depends on DEBUG_KERNEL
15 help
16 Kprobes allows you to trap at almost any kernel address and
17 execute a callback function. register_kprobe() establishes
18 a probepoint and specifies the callback. Kprobes is useful
19 for kernel debugging, non-intrusive instrumentation and testing.
20 If in doubt, say "N".
21
22config DEBUG_STACK_USAGE
23 bool "Stack utilization instrumentation"
24 depends on DEBUG_KERNEL
25 help
26 Enables the display of the minimum amount of free stack which each
27 task has ever had available in the sysrq-T and sysrq-P debug output.
28
29 This option will slow down process creation somewhat.
30
31config DEBUGGER
32 bool "Enable debugger hooks"
33 depends on DEBUG_KERNEL
34 help
35 Include in-kernel hooks for kernel debuggers. Unless you are
36 intending to debug the kernel, say N here.
37
38config XMON
39 bool "Include xmon kernel debugger"
40 depends on DEBUGGER && !PPC_ISERIES
41 help
42 Include in-kernel hooks for the xmon kernel monitor/debugger.
43 Unless you are intending to debug the kernel, say N here.
Olaf Heringb749bfc2005-09-03 15:55:58 -070044 Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
45 nothing will appear on the screen (xmon writes directly to the
46 framebuffer memory).
47 The cmdline option 'xmon' or 'xmon=early' will drop into xmon very
48 early during boot. 'xmon=on' will just enable the xmon debugger hooks.
49 'xmon=off' will disable the debugger hooks if CONFIG_XMON_DEFAULT is set.
Linus Torvalds1da177e2005-04-16 15:20:36 -070050
51config XMON_DEFAULT
52 bool "Enable xmon by default"
53 depends on XMON
Olaf Heringb749bfc2005-09-03 15:55:58 -070054 help
55 xmon is normally disabled unless booted with 'xmon=on'.
56 Use 'xmon=off' to disable xmon init during runtime.
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
58config PPCDBG
59 bool "Include PPCDBG realtime debugging"
60 depends on DEBUG_KERNEL
61
62config IRQSTACKS
63 bool "Use separate kernel stacks when processing interrupts"
64 help
65 If you say Y here the kernel will use separate kernel stacks
66 for handling hard and soft interrupts. This can help avoid
67 overflowing the process kernel stacks.
68
69endmenu