Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
| 3 | source "lib/Kconfig.debug" |
| 4 | |
Paul Mackerras | ff64208 | 2005-10-10 22:15:52 +1000 | [diff] [blame] | 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 | |
Paul Mackerras | ff64208 | 2005-10-10 22:15:52 +1000 | [diff] [blame] | 12 | config DEBUG_STACK_USAGE |
| 13 | bool "Stack utilization instrumentation" |
| 14 | depends on DEBUG_KERNEL && PPC64 |
| 15 | help |
| 16 | Enables the display of the minimum amount of free stack which each |
| 17 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 18 | |
| 19 | This option will slow down process creation somewhat. |
| 20 | |
| 21 | config DEBUGGER |
| 22 | bool "Enable debugger hooks" |
| 23 | depends on DEBUG_KERNEL |
| 24 | help |
| 25 | Include in-kernel hooks for kernel debuggers. Unless you are |
| 26 | intending to debug the kernel, say N here. |
| 27 | |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 28 | config KGDB |
| 29 | bool "Include kgdb kernel debugger" |
Paul Mackerras | ff64208 | 2005-10-10 22:15:52 +1000 | [diff] [blame] | 30 | depends on DEBUGGER && (BROKEN || PPC_GEN550 || 4xx) |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 31 | select DEBUG_INFO |
| 32 | help |
| 33 | Include in-kernel hooks for kgdb, the Linux kernel source level |
| 34 | debugger. See <http://kgdb.sourceforge.net/> for more information. |
| 35 | Unless you are intending to debug the kernel, say N here. |
| 36 | |
| 37 | choice |
| 38 | prompt "Serial Port" |
| 39 | depends on KGDB |
| 40 | default KGDB_TTYS1 |
| 41 | |
| 42 | config KGDB_TTYS0 |
| 43 | bool "ttyS0" |
| 44 | |
| 45 | config KGDB_TTYS1 |
| 46 | bool "ttyS1" |
| 47 | |
| 48 | config KGDB_TTYS2 |
| 49 | bool "ttyS2" |
| 50 | |
| 51 | config KGDB_TTYS3 |
| 52 | bool "ttyS3" |
| 53 | |
| 54 | endchoice |
| 55 | |
| 56 | config KGDB_CONSOLE |
| 57 | bool "Enable serial console thru kgdb port" |
| 58 | depends on KGDB && 8xx || CPM2 |
| 59 | help |
| 60 | If you enable this, all serial console messages will be sent |
| 61 | over the gdb stub. |
| 62 | If unsure, say N. |
| 63 | |
| 64 | config XMON |
| 65 | bool "Include xmon kernel debugger" |
Paul Mackerras | ff64208 | 2005-10-10 22:15:52 +1000 | [diff] [blame] | 66 | depends on DEBUGGER && !PPC_ISERIES |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 67 | help |
| 68 | Include in-kernel hooks for the xmon kernel monitor/debugger. |
| 69 | Unless you are intending to debug the kernel, say N here. |
Paul Mackerras | ff64208 | 2005-10-10 22:15:52 +1000 | [diff] [blame] | 70 | Make sure to enable also CONFIG_BOOTX_TEXT on Macs. Otherwise |
| 71 | nothing will appear on the screen (xmon writes directly to the |
| 72 | framebuffer memory). |
| 73 | The cmdline option 'xmon' or 'xmon=early' will drop into xmon |
| 74 | very early during boot. 'xmon=on' will just enable the xmon |
| 75 | debugger hooks. 'xmon=off' will disable the debugger hooks |
| 76 | if CONFIG_XMON_DEFAULT is set. |
| 77 | |
| 78 | config XMON_DEFAULT |
| 79 | bool "Enable xmon by default" |
| 80 | depends on XMON |
| 81 | help |
| 82 | xmon is normally disabled unless booted with 'xmon=on'. |
| 83 | Use 'xmon=off' to disable xmon init during runtime. |
| 84 | |
| 85 | config IRQSTACKS |
| 86 | bool "Use separate kernel stacks when processing interrupts" |
| 87 | depends on PPC64 |
| 88 | help |
| 89 | If you say Y here the kernel will use separate kernel stacks |
| 90 | for handling hard and soft interrupts. This can help avoid |
| 91 | overflowing the process kernel stacks. |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 92 | |
| 93 | config BDI_SWITCH |
| 94 | bool "Include BDI-2000 user context switcher" |
Paul Mackerras | ff64208 | 2005-10-10 22:15:52 +1000 | [diff] [blame] | 95 | depends on DEBUG_KERNEL && PPC32 |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 96 | help |
| 97 | Include in-kernel support for the Abatron BDI2000 debugger. |
| 98 | Unless you are intending to debug the kernel with one of these |
| 99 | machines, say N here. |
| 100 | |
| 101 | config BOOTX_TEXT |
| 102 | bool "Support for early boot text console (BootX or OpenFirmware only)" |
Stephen Rothwell | eeb2d21 | 2005-09-30 17:24:15 +1000 | [diff] [blame] | 103 | depends PPC_OF && !PPC_ISERIES |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 104 | help |
| 105 | Say Y here to see progress messages from the boot firmware in text |
| 106 | mode. Requires either BootX or Open Firmware. |
| 107 | |
| 108 | config SERIAL_TEXT_DEBUG |
| 109 | bool "Support for early boot texts over serial port" |
| 110 | depends on 4xx || LOPEC || MV64X60 || PPLUS || PRPMC800 || \ |
| 111 | PPC_GEN550 || PPC_MPC52xx |
| 112 | |
Michael Ellerman | 485a2d5 | 2006-05-09 16:03:51 +1000 | [diff] [blame] | 113 | config PPC_EARLY_DEBUG |
| 114 | bool "Early debugging (dangerous)" |
| 115 | |
Michael Ellerman | 296167a | 2006-01-11 11:54:09 +1100 | [diff] [blame] | 116 | choice |
Michael Ellerman | 485a2d5 | 2006-05-09 16:03:51 +1000 | [diff] [blame] | 117 | prompt "Early debugging console" |
| 118 | depends on PPC_EARLY_DEBUG |
Michael Ellerman | 296167a | 2006-01-11 11:54:09 +1100 | [diff] [blame] | 119 | help |
Michael Ellerman | 485a2d5 | 2006-05-09 16:03:51 +1000 | [diff] [blame] | 120 | Use the selected console for early debugging. Careful, if you |
| 121 | enable debugging for the wrong type of machine your kernel |
| 122 | _will not boot_. |
Michael Ellerman | 296167a | 2006-01-11 11:54:09 +1100 | [diff] [blame] | 123 | |
| 124 | config PPC_EARLY_DEBUG_LPAR |
| 125 | bool "LPAR HV Console" |
| 126 | depends on PPC_PSERIES |
| 127 | help |
| 128 | Select this to enable early debugging for a machine with a HVC |
| 129 | console on vterm 0. |
| 130 | |
| 131 | config PPC_EARLY_DEBUG_G5 |
| 132 | bool "Apple G5" |
| 133 | depends on PPC_PMAC64 |
| 134 | help |
| 135 | Select this to enable early debugging for Apple G5 machines. |
| 136 | |
| 137 | config PPC_EARLY_DEBUG_RTAS |
| 138 | bool "RTAS Panel" |
| 139 | depends on PPC_RTAS |
| 140 | help |
| 141 | Select this to enable early debugging via the RTAS panel. |
| 142 | |
| 143 | config PPC_EARLY_DEBUG_MAPLE |
| 144 | bool "Maple real mode" |
| 145 | depends on PPC_MAPLE |
| 146 | help |
| 147 | Select this to enable early debugging for Maple. |
| 148 | |
| 149 | config PPC_EARLY_DEBUG_ISERIES |
| 150 | bool "iSeries HV Console" |
| 151 | depends on PPC_ISERIES |
| 152 | help |
| 153 | Select this to enable early debugging for legacy iSeries. You need |
| 154 | to hit "Ctrl-x Ctrl-x" to see the messages on the console. |
| 155 | |
| 156 | endchoice |
| 157 | |
Paul Mackerras | 14cf11a | 2005-09-26 16:04:21 +1000 | [diff] [blame] | 158 | endmenu |