diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-07-16 02:38:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:36 -0400 |
commit | f0630fff54a239efbbd89faf6a62da071ef1ff78 (patch) | |
tree | 4004adc3adf4dbe1a6188ca0bbd56f7606d4d05f /lib/Kconfig.debug | |
parent | fc9a07e7bf1a76e710f5df017abb07628db1781d (diff) |
SLUB: support slub_debug on by default
Add a new configuration variable
CONFIG_SLUB_DEBUG_ON
If set then the kernel will be booted by default with slab debugging
switched on. Similar to CONFIG_SLAB_DEBUG. By default slab debugging
is available but must be enabled by specifying "slub_debug" as a
kernel parameter.
Also add support to switch off slab debugging for a kernel that was
built with CONFIG_SLUB_DEBUG_ON. This works by specifying
slub_debug=-
as a kernel parameter.
Dave Jones wanted this feature.
http://marc.info/?l=linux-kernel&m=118072189913045&w=2
[akpm@linux-foundation.org: clean up switch statement]
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index fab32a286371..640844024ffd 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -152,6 +152,19 @@ config DEBUG_SLAB_LEAK | |||
152 | bool "Memory leak debugging" | 152 | bool "Memory leak debugging" |
153 | depends on DEBUG_SLAB | 153 | depends on DEBUG_SLAB |
154 | 154 | ||
155 | config SLUB_DEBUG_ON | ||
156 | bool "SLUB debugging on by default" | ||
157 | depends on SLUB && SLUB_DEBUG | ||
158 | default n | ||
159 | help | ||
160 | Boot with debugging on by default. SLUB boots by default with | ||
161 | the runtime debug capabilities switched off. Enabling this is | ||
162 | equivalent to specifying the "slub_debug" parameter on boot. | ||
163 | There is no support for more fine grained debug control like | ||
164 | possible with slub_debug=xxx. SLUB debugging may be switched | ||
165 | off in a kernel built with CONFIG_SLUB_DEBUG_ON by specifying | ||
166 | "slub_debug=-". | ||
167 | |||
155 | config DEBUG_PREEMPT | 168 | config DEBUG_PREEMPT |
156 | bool "Debug preemptible kernel" | 169 | bool "Debug preemptible kernel" |
157 | depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT | 170 | depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT |