Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | menu "Kernel hacking" |
| 2 | |
Ralf Baechle | 192ef36 | 2006-07-07 14:07:18 +0100 | [diff] [blame] | 3 | config TRACE_IRQFLAGS_SUPPORT |
| 4 | bool |
| 5 | default y |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | source "lib/Kconfig.debug" |
| 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | config CMDLINE |
| 10 | string "Default kernel command string" |
| 11 | default "" |
| 12 | help |
Jan Altenberg | 3e7f9b82 | 2007-01-25 20:46:14 +0100 | [diff] [blame] | 13 | On some platforms, there is currently no way for the boot loader to |
| 14 | pass arguments to the kernel. For these platforms, you can supply |
| 15 | some command-line options at build time by entering them here. In |
| 16 | other cases you can specify kernel args so that you don't have |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | to set them up in board prom initialization routines. |
| 18 | |
| 19 | config DEBUG_STACK_USAGE |
| 20 | bool "Enable stack utilization instrumentation" |
| 21 | depends on DEBUG_KERNEL |
| 22 | help |
| 23 | Enables the display of the minimum amount of free stack which each |
| 24 | task has ever had available in the sysrq-T and sysrq-P debug output. |
| 25 | |
| 26 | This option will slow down process creation somewhat. |
| 27 | |
Ralf Baechle | 9349075 | 2007-07-05 17:39:48 +0100 | [diff] [blame] | 28 | config SMTC_IDLE_HOOK_DEBUG |
Ralf Baechle | c68644d | 2007-02-26 20:46:34 +0000 | [diff] [blame] | 29 | bool "Enable additional debug checks before going into CPU idle loop" |
| 30 | depends on DEBUG_KERNEL && MIPS_MT_SMTC |
| 31 | help |
| 32 | This option enables Enable additional debug checks before going into |
| 33 | CPU idle loop. For details on these checks, see |
| 34 | arch/mips/kernel/smtc.c. This debugging option result in significant |
| 35 | overhead so should be disabled in production kernels. |
| 36 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | config KGDB |
| 38 | bool "Remote GDB kernel debugging" |
Ralf Baechle | cc80107 | 2007-02-17 02:58:39 +0000 | [diff] [blame] | 39 | depends on DEBUG_KERNEL && SYS_SUPPORTS_KGDB |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | select DEBUG_INFO |
| 41 | help |
| 42 | If you say Y here, it will be possible to remotely debug the MIPS |
| 43 | kernel using gdb. This enlarges your kernel image disk size by |
| 44 | several megabytes and requires a machine with more than 16 MB, |
| 45 | better 32 MB RAM to avoid excessive linking time. This is only |
| 46 | useful for kernel hackers. If unsure, say N. |
| 47 | |
Ralf Baechle | cc80107 | 2007-02-17 02:58:39 +0000 | [diff] [blame] | 48 | config SYS_SUPPORTS_KGDB |
| 49 | bool |
| 50 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | config GDB_CONSOLE |
| 52 | bool "Console output to GDB" |
| 53 | depends on KGDB |
| 54 | help |
| 55 | If you are using GDB for remote debugging over a serial port and |
| 56 | would like kernel messages to be formatted into GDB $O packets so |
| 57 | that GDB prints them as program output, say 'Y'. |
| 58 | |
| 59 | config SB1XXX_CORELIS |
| 60 | bool "Corelis Debugger" |
| 61 | depends on SIBYTE_SB1xxx_SOC |
| 62 | select DEBUG_INFO |
| 63 | help |
| 64 | Select compile flags that produce code that can be processed by the |
| 65 | Corelis mksym utility and UDB Emulator. |
| 66 | |
| 67 | config RUNTIME_DEBUG |
| 68 | bool "Enable run-time debugging" |
| 69 | depends on DEBUG_KERNEL |
| 70 | help |
| 71 | If you say Y here, some debugging macros will do run-time checking. |
| 72 | If you say N here, those macros will mostly turn to no-ops. See |
| 73 | include/asm-mips/debug.h for debuging macros. |
| 74 | If unsure, say N. |
| 75 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 76 | endmenu |