@@ -2,9 +2,42 @@ menu "Kernel hacking"
2
2
3
3
source "lib/Kconfig.debug"
4
4
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
+
5
38
config KGDB
6
39
bool "Include kgdb kernel debugger"
7
- depends on DEBUG_KERNEL && (BROKEN || PPC_GEN550 || 4xx)
40
+ depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
8
41
select DEBUG_INFO
9
42
help
10
43
Include in-kernel hooks for kgdb, the Linux kernel source level
@@ -40,14 +73,36 @@ config KGDB_CONSOLE
40
73
41
74
config XMON
42
75
bool "Include xmon kernel debugger"
43
- depends on DEBUG_KERNEL
76
+ depends on DEBUGGER && !PPC_ISERIES
44
77
help
45
78
Include in-kernel hooks for the xmon kernel monitor/debugger.
46
79
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.
47
102
48
103
config BDI_SWITCH
49
104
bool "Include BDI-2000 user context switcher"
50
- depends on DEBUG_KERNEL
105
+ depends on DEBUG_KERNEL && PPC32
51
106
help
52
107
Include in-kernel support for the Abatron BDI2000 debugger.
53
108
Unless you are intending to debug the kernel with one of these
0 commit comments