arch/mips/Kconfig.debug v3.0-rc7


Menu: Kernel hacking

lib/Kconfig.debug

EARLY_PRINTK

Early printk

This option enables special console drivers which allow the kernel
to print messages very early in the bootup process.

This is useful for kernel debugging when your machine crashes very
early before the console code is initialized. For normal operation,
it is not recommended because it looks ugly on some machines and
doesn't cooperate with an X server. You should normally say N here,
unless you want to debug such a crash.

CMDLINE_BOOL

Built-in kernel command line

For most systems, it is firmware or second stage bootloader that
by default specifies the kernel command line options.  However,
it might be necessary or advantageous to either override the
default kernel command line or add a few extra options to it.
For such cases, this option allows you to hardcode your own
command line options directly into the kernel.  For that, you
should choose 'Y' here, and fill in the extra boot arguments
in CONFIG_CMDLINE.

The built-in options will be concatenated to the default command
line if CMDLINE_OVERRIDE is set to 'N'. Otherwise, the default
command line will be ignored and replaced by the built-in string.

Most MIPS systems will normally expect 'N' here and rely upon
the command line from the firmware or the second-stage bootloader.

CMDLINE

Default kernel command string

On some platforms, there is currently no way for the boot loader to
pass arguments to the kernel.  For these platforms, and for the cases
when you want to add some extra options to the command line or ignore
the default command line, you can supply some command-line options at
build time by entering them here.  In other cases you can specify
kernel args so that you don't have to set them up in board prom
initialization routines.

For more information, see the CMDLINE_BOOL and CMDLINE_OVERRIDE
options.

CMDLINE_OVERRIDE

Built-in command line overrides firware arguments

By setting this option to 'Y' you will have your kernel ignore
command line arguments from firmware or second stage bootloader.
Instead, the built-in command line will be used exclusively.

Normally, you will choose 'N' here.

DEBUG_STACKOVERFLOW

Check for stack overflows

This option will cause messages to be printed if free stack space
drops below a certain limit(2GB on MIPS). The debugging option
provides another way to check stack overflow happened on kernel mode
stack usually caused by nested interruption.

SMTC_IDLE_HOOK_DEBUG

Enable additional debug checks before going into CPU idle loop

This option enables Enable additional debug checks before going into
CPU idle loop.  For details on these checks, see
arch/mips/kernel/smtc.c.  This debugging option result in significant
overhead so should be disabled in production kernels.

SB1XXX_CORELIS

Corelis Debugger

Select compile flags that produce code that can be processed by the
Corelis mksym utility and UDB Emulator.

RUNTIME_DEBUG

Enable run-time debugging

If you say Y here, some debugging macros will do run-time checking.
If you say N here, those macros will mostly turn to no-ops.  See
arch/mips/include/asm/debug.h for debugging macros.
If unsure, say N.

DEBUG_ZBOOT

Enable compressed kernel support debugging

If you want to add compressed kernel support to a new board, and the
board supports uart16550 compatible serial port, please select
SYS_SUPPORTS_ZBOOT_UART16550 for your board and enable this option to
debug it.

If your board doesn't support uart16550 compatible serial port, you
can try to select SYS_SUPPORTS_ZBOOT and use the other methods to
debug it. for example, add a new serial port support just as
arch/mips/boot/compressed/uart-16550.c does.

After the compressed kernel support works, please disable this option
to reduce the kernel image size and speed up the booting procedure a
little.

SPINLOCK_TEST

Enable spinlock timing tests in debugfs

Add several files to the debugfs to test spinlock speed.