1*1da177e4SLinus Torvaldsmenu "Kernel hacking" 2*1da177e4SLinus Torvalds 3*1da177e4SLinus Torvaldssource "lib/Kconfig.debug" 4*1da177e4SLinus Torvalds 5*1da177e4SLinus Torvaldsconfig CROSSCOMPILE 6*1da177e4SLinus Torvalds bool "Are you using a crosscompiler" 7*1da177e4SLinus Torvalds help 8*1da177e4SLinus Torvalds Say Y here if you are compiling the kernel on a different 9*1da177e4SLinus Torvalds architecture than the one it is intended to run on. 10*1da177e4SLinus Torvalds 11*1da177e4SLinus Torvaldsconfig CMDLINE 12*1da177e4SLinus Torvalds string "Default kernel command string" 13*1da177e4SLinus Torvalds default "" 14*1da177e4SLinus Torvalds help 15*1da177e4SLinus Torvalds On some platforms, there is currently no way for the boot loader to 16*1da177e4SLinus Torvalds pass arguments to the kernel. For these platforms, you can supply 17*1da177e4SLinus Torvalds some command-line options at build time by entering them here. In 18*1da177e4SLinus Torvalds other cases you can specify kernel args so that you don't have 19*1da177e4SLinus Torvalds to set them up in board prom initialization routines. 20*1da177e4SLinus Torvalds 21*1da177e4SLinus Torvaldsconfig DEBUG_STACK_USAGE 22*1da177e4SLinus Torvalds bool "Enable stack utilization instrumentation" 23*1da177e4SLinus Torvalds depends on DEBUG_KERNEL 24*1da177e4SLinus Torvalds help 25*1da177e4SLinus Torvalds Enables the display of the minimum amount of free stack which each 26*1da177e4SLinus Torvalds task has ever had available in the sysrq-T and sysrq-P debug output. 27*1da177e4SLinus Torvalds 28*1da177e4SLinus Torvalds This option will slow down process creation somewhat. 29*1da177e4SLinus Torvalds 30*1da177e4SLinus Torvaldsconfig KGDB 31*1da177e4SLinus Torvalds bool "Remote GDB kernel debugging" 32*1da177e4SLinus Torvalds depends on DEBUG_KERNEL 33*1da177e4SLinus Torvalds select DEBUG_INFO 34*1da177e4SLinus Torvalds help 35*1da177e4SLinus Torvalds If you say Y here, it will be possible to remotely debug the MIPS 36*1da177e4SLinus Torvalds kernel using gdb. This enlarges your kernel image disk size by 37*1da177e4SLinus Torvalds several megabytes and requires a machine with more than 16 MB, 38*1da177e4SLinus Torvalds better 32 MB RAM to avoid excessive linking time. This is only 39*1da177e4SLinus Torvalds useful for kernel hackers. If unsure, say N. 40*1da177e4SLinus Torvalds 41*1da177e4SLinus Torvaldsconfig GDB_CONSOLE 42*1da177e4SLinus Torvalds bool "Console output to GDB" 43*1da177e4SLinus Torvalds depends on KGDB 44*1da177e4SLinus Torvalds help 45*1da177e4SLinus Torvalds If you are using GDB for remote debugging over a serial port and 46*1da177e4SLinus Torvalds would like kernel messages to be formatted into GDB $O packets so 47*1da177e4SLinus Torvalds that GDB prints them as program output, say 'Y'. 48*1da177e4SLinus Torvalds 49*1da177e4SLinus Torvaldsconfig SB1XXX_CORELIS 50*1da177e4SLinus Torvalds bool "Corelis Debugger" 51*1da177e4SLinus Torvalds depends on SIBYTE_SB1xxx_SOC 52*1da177e4SLinus Torvalds select DEBUG_INFO 53*1da177e4SLinus Torvalds help 54*1da177e4SLinus Torvalds Select compile flags that produce code that can be processed by the 55*1da177e4SLinus Torvalds Corelis mksym utility and UDB Emulator. 56*1da177e4SLinus Torvalds 57*1da177e4SLinus Torvaldsconfig RUNTIME_DEBUG 58*1da177e4SLinus Torvalds bool "Enable run-time debugging" 59*1da177e4SLinus Torvalds depends on DEBUG_KERNEL 60*1da177e4SLinus Torvalds help 61*1da177e4SLinus Torvalds If you say Y here, some debugging macros will do run-time checking. 62*1da177e4SLinus Torvalds If you say N here, those macros will mostly turn to no-ops. See 63*1da177e4SLinus Torvalds include/asm-mips/debug.h for debuging macros. 64*1da177e4SLinus Torvalds If unsure, say N. 65*1da177e4SLinus Torvalds 66*1da177e4SLinus Torvaldsconfig MIPS_UNCACHED 67*1da177e4SLinus Torvalds bool "Run uncached" 68*1da177e4SLinus Torvalds depends on DEBUG_KERNEL && !SMP && !SGI_IP27 69*1da177e4SLinus Torvalds help 70*1da177e4SLinus Torvalds If you say Y here there kernel will disable all CPU caches. This will 71*1da177e4SLinus Torvalds reduce the system's performance dramatically but can help finding 72*1da177e4SLinus Torvalds otherwise hard to track bugs. It can also useful if you're doing 73*1da177e4SLinus Torvalds hardware debugging with a logic analyzer and need to see all traffic 74*1da177e4SLinus Torvalds on the bus. 75*1da177e4SLinus Torvalds 76*1da177e4SLinus Torvaldsendmenu 77