Skip to contentSkip to conversation

DEBUG_SLAB depends on SLAB

PATCH In review Ingo Molnar 2 participants 4 messages Dec 11, 2005 – Dec 12, 2005 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DEBUG_SLAB depends on SLAB

another SLOB related patch: make DEBUG_SLAB depend on SLAB.

lib/Kconfig.debug +1 -1
Index: linux/lib/Kconfig.debug
===================================================================
@@ -100,7 +100,7 @@ config SCHEDSTATS
 
 config DEBUG_SLAB
 	bool "Debug memory allocations"
-	depends on DEBUG_KERNEL
+	depends on DEBUG_KERNEL && SLAB
 	help
 	  Say Y here to have the kernel do limited verification on memory
 	  allocation as well as poisoning memory on free to catch use of freed
#1 lore raw

SLOB wishlist

btw., here's my SLOB wishlist:

- would be nice to have DEBUG_SLOB - people want to debug their memory allocations, no matter which allocator they use.

- would be nice to have CONFIG_SLOB_INFO, to have /proc/slabinfo for those who are ready to pay the .text price for it - this is nice for memory leak debugging, etc. [should be /proc/slabinfo, not /proc/slobinfo - to stay compatible with things like slabtop]

Ingo

#2 lore raw

Re: SLOB wishlist

Quoted 5 lines · Ingo Molnar

btw., here's my SLOB wishlist:

- would be nice to have DEBUG_SLOB - people want to debug their memory allocations, no matter which allocator they use.

I have a patch somewhere for that.

Quoted 4 lines

- would be nice to have CONFIG_SLOB_INFO, to have /proc/slabinfo for those who are ready to pay the .text price for it - this is nice for memory leak debugging, etc. [should be /proc/slabinfo, not /proc/slobinfo - to stay compatible with things like slabtop]

Might make more sense to use my /proc/kmalloc patch for this.

Signature · 1 line
Mathematics is the supreme nostalgia of our time.
Acked-by on v1 1/1
#3 lore raw
In reply to Ingo Molnar
Quoted 3 lines · Ingo Molnar

another SLOB related patch: make DEBUG_SLAB depend on SLAB.

Quoted 14 lines

Index: linux/lib/Kconfig.debug
===================================================================

lib/Kconfig.debug +1 -1
@@ -100,7 +100,7 @@ config SCHEDSTATS
 
 config DEBUG_SLAB
 	bool "Debug memory allocations"
-	depends on DEBUG_KERNEL
+	depends on DEBUG_KERNEL && SLAB
 	help
 	  Say Y here to have the kernel do limited verification on memory
 	  allocation as well as poisoning memory on free to catch use of freed
Signature · 1 line
Mathematics is the supreme nostalgia of our time.