Blame view

arch/mips/Kconfig.debug 4.64 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
  menu "Kernel hacking"
192ef3661   Ralf Baechle   [MIPS] TRACE_IRQF...
2
3
4
  config TRACE_IRQFLAGS_SUPPORT
  	bool
  	default y
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
5
  source "lib/Kconfig.debug"
4dd92e15b   Ralf Baechle   MIPS: Move EARLY_...
6
  config EARLY_PRINTK
6a108a14f   David Rientjes   kconfig: rename C...
7
  	bool "Early printk" if EXPERT
4dd92e15b   Ralf Baechle   MIPS: Move EARLY_...
8
9
10
11
12
13
14
15
16
17
18
  	depends on SYS_HAS_EARLY_PRINTK
  	default y
  	help
  	  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.
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  config CMDLINE_BOOL
  	bool "Built-in kernel command line"
  	default n
  	help
  	  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.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
38
39
  config CMDLINE
  	string "Default kernel command string"
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
40
  	depends on CMDLINE_BOOL
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
41
42
  	default ""
  	help
3e7f9b825   Jan Altenberg   [MIPS] Fix some w...
43
  	  On some platforms, there is currently no way for the boot loader to
6acc7d485   Dmitri Vorobiev   MIPS: Fix and enh...
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  	  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.
  
  config CMDLINE_OVERRIDE
  	bool "Built-in command line overrides firware arguments"
  	default n
  	depends on CMDLINE_BOOL
  	help
  	  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.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
64

334c86c49   From: jiang.adam@gmail.com   MIPS: IRQ: Add st...
65
66
67
68
69
70
71
72
  config DEBUG_STACKOVERFLOW
  	bool "Check for stack overflows"
  	depends on DEBUG_KERNEL
  	help
  	  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.
9349075a1   Ralf Baechle   [MIPS] SMTC: Fix ...
73
  config SMTC_IDLE_HOOK_DEBUG
c68644d33   Ralf Baechle   [MIPS] Make SMTC_...
74
75
76
77
78
79
80
  	bool "Enable additional debug checks before going into CPU idle loop"
  	depends on DEBUG_KERNEL && MIPS_MT_SMTC
  	help
  	  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.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
81
82
83
84
85
86
87
88
89
90
91
92
93
94
  config SB1XXX_CORELIS
  	bool "Corelis Debugger"
  	depends on SIBYTE_SB1xxx_SOC
  	select DEBUG_INFO
  	help
  	  Select compile flags that produce code that can be processed by the
  	  Corelis mksym utility and UDB Emulator.
  
  config RUNTIME_DEBUG
  	bool "Enable run-time debugging"
  	depends on DEBUG_KERNEL
  	help
  	  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
00ace2071   Dmitri Vorobiev   MIPS: Kconfig: Fi...
95
  	  arch/mips/include/asm/debug.h for debugging macros.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
96
  	  If unsure, say N.
f86a69b15   Wu Zhangjin   MIPS: Make the de...
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
  config DEBUG_ZBOOT
  	bool "Enable compressed kernel support debugging"
  	depends on DEBUG_KERNEL && SYS_SUPPORTS_ZBOOT
  	default n
  	help
  	  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.
bba907605   David Daney   MIPS: Crazy spinl...
115
116
117
118
119
120
  config SPINLOCK_TEST
  	bool "Enable spinlock timing tests in debugfs"
  	depends on DEBUG_FS
  	default n
  	help
  	  Add several files to the debugfs to test spinlock speed.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
121
  endmenu