@@ -2,9 +2,42 @@ menu "Kernel hacking"
22
33source "lib/Kconfig.debug"
44
5+ config DEBUG_STACKOVERFLOW
6+ bool "Check for stack overflows"
7+ depends on DEBUG_KERNEL && PPC64
8+ help
9+ This option will cause messages to be printed if free stack space
10+ drops below a certain limit.
11+
12+ config KPROBES
13+ bool "Kprobes"
14+ depends on DEBUG_KERNEL && PPC64
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+
22+ config DEBUG_STACK_USAGE
23+ bool "Stack utilization instrumentation"
24+ depends on DEBUG_KERNEL && PPC64
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+
31+ config 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+
538config KGDB
639 bool "Include kgdb kernel debugger"
7- depends on DEBUG_KERNEL && (BROKEN || PPC_GEN550 || 4xx)
40+ depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
841 select DEBUG_INFO
942 help
1043 Include in-kernel hooks for kgdb, the Linux kernel source level
@@ -40,14 +73,36 @@ config KGDB_CONSOLE
4073
4174config XMON
4275 bool "Include xmon kernel debugger"
43- depends on DEBUG_KERNEL
76+ depends on DEBUGGER && !PPC_ISERIES
4477 help
4578 Include in-kernel hooks for the xmon kernel monitor/debugger.
4679 Unless you are intending to debug the kernel, say N here.
80+ Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise
81+ nothing will appear on the screen (xmon writes directly to the
82+ framebuffer memory).
83+ The cmdline option 'xmon' or 'xmon=early' will drop into xmon
84+ very early during boot. 'xmon=on' will just enable the xmon
85+ debugger hooks. 'xmon=off' will disable the debugger hooks
86+ if CONFIG_XMON_DEFAULT is set.
87+
88+ config XMON_DEFAULT
89+ bool "Enable xmon by default"
90+ depends on XMON
91+ help
92+ xmon is normally disabled unless booted with 'xmon=on'.
93+ Use 'xmon=off' to disable xmon init during runtime.
94+
95+ config IRQSTACKS
96+ bool "Use separate kernel stacks when processing interrupts"
97+ depends on PPC64
98+ help
99+ If you say Y here the kernel will use separate kernel stacks
100+ for handling hard and soft interrupts. This can help avoid
101+ overflowing the process kernel stacks.
47102
48103config BDI_SWITCH
49104 bool "Include BDI-2000 user context switcher"
50- depends on DEBUG_KERNEL
105+ depends on DEBUG_KERNEL && PPC32
51106 help
52107 Include in-kernel support for the Abatron BDI2000 debugger.
53108 Unless you are intending to debug the kernel with one of these
0 commit comments