xref: /linux/arch/powerpc/Kconfig.debug (revision 858259cf7d1c443c836a2022b78cb281f0a9b95e)
1menu "Kernel hacking"
2
3source "lib/Kconfig.debug"
4
5config 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
12config 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
22config 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
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 KGDB
39	bool "Include kgdb kernel debugger"
40	depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx)
41	select DEBUG_INFO
42	help
43	  Include in-kernel hooks for kgdb, the Linux kernel source level
44	  debugger.  See <http://kgdb.sourceforge.net/> for more information.
45	  Unless you are intending to debug the kernel, say N here.
46
47choice
48	prompt "Serial Port"
49	depends on KGDB
50	default KGDB_TTYS1
51
52config KGDB_TTYS0
53	bool "ttyS0"
54
55config KGDB_TTYS1
56	bool "ttyS1"
57
58config KGDB_TTYS2
59	bool "ttyS2"
60
61config KGDB_TTYS3
62	bool "ttyS3"
63
64endchoice
65
66config KGDB_CONSOLE
67	bool "Enable serial console thru kgdb port"
68	depends on KGDB && 8xx || CPM2
69	help
70	  If you enable this, all serial console messages will be sent
71	  over the gdb stub.
72	  If unsure, say N.
73
74config XMON
75	bool "Include xmon kernel debugger"
76	depends on DEBUGGER && !PPC_ISERIES
77	help
78	  Include in-kernel hooks for the xmon kernel monitor/debugger.
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
88config 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
95config 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.
102
103config BDI_SWITCH
104	bool "Include BDI-2000 user context switcher"
105	depends on DEBUG_KERNEL && PPC32
106	help
107	  Include in-kernel support for the Abatron BDI2000 debugger.
108	  Unless you are intending to debug the kernel with one of these
109	  machines, say N here.
110
111config BOOTX_TEXT
112	bool "Support for early boot text console (BootX or OpenFirmware only)"
113	depends PPC_OF && !PPC_ISERIES
114	help
115	  Say Y here to see progress messages from the boot firmware in text
116	  mode. Requires either BootX or Open Firmware.
117
118config SERIAL_TEXT_DEBUG
119	bool "Support for early boot texts over serial port"
120	depends on 4xx || LOPEC || MV64X60 || PPLUS || PRPMC800 || \
121		PPC_GEN550 || PPC_MPC52xx
122
123config PPC_OCP
124	bool
125	depends on IBM_OCP || XILINX_OCP
126	default y
127
128endmenu
129