aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2007-05-09 05:32:44 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-09 15:30:45 -0400
commit41ecc55b8a8ca618e6d490982c7ce45d230d4399 (patch)
treeba2f416a2ea92eb335cae028c586b3cd3797d66c /init
parent02cbc874463924de2c3403379b698bce3cd277a5 (diff)
SLUB: add CONFIG_SLUB_DEBUG
CONFIG_SLUB_DEBUG can be used to switch off the debugging and sysfs components of SLUB. Thus SLUB will be able to replace SLOB. SLUB can arrange objects in a denser way than SLOB and the code size should be minimal without debugging and sysfs support. Note that CONFIG_SLUB_DEBUG is materially different from CONFIG_SLAB_DEBUG. CONFIG_SLAB_DEBUG is used to enable slab debugging in SLAB. SLUB enables debugging via a boot parameter. SLUB debug code should always be present. CONFIG_SLUB_DEBUG can be modified in the embedded config section. 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 'init')
-rw-r--r--init/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index d0edf42f4dba..da6a91c4a051 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -504,6 +504,15 @@ config VM_EVENT_COUNTERS
504 on EMBEDDED systems. /proc/vmstat will only show page counts 504 on EMBEDDED systems. /proc/vmstat will only show page counts
505 if VM event counters are disabled. 505 if VM event counters are disabled.
506 506
507config SLUB_DEBUG
508 default y
509 bool "Enable SLUB debugging support" if EMBEDDED
510 help
511 SLUB has extensive debug support features. Disabling these can
512 result in significant savings in code size. This also disables
513 SLUB sysfs support. /sys/slab will not exist and there will be
514 no support for cache validation etc.
515
507choice 516choice
508 prompt "Choose SLAB allocator" 517 prompt "Choose SLAB allocator"
509 default SLAB 518 default SLAB