mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch -mm] DEBUG_SLAB depends on SLAB
@ 2005-12-11 14:17 Ingo Molnar
  2005-12-11 14:23 ` SLOB wishlist Ingo Molnar
  2005-12-12  0:46 ` [patch -mm] DEBUG_SLAB depends on SLAB Matt Mackall
  0 siblings, 2 replies; 4+ messages in thread
From: Ingo Molnar @ 2005-12-11 14:17 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Matt Mackall

another SLOB related patch: make DEBUG_SLAB depend on SLAB.

Signed-off-by: Ingo Molnar <mingo@elte.hu>

Index: linux/lib/Kconfig.debug
===================================================================
--- linux.orig/lib/Kconfig.debug
+++ 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* SLOB wishlist
  2005-12-11 14:17 [patch -mm] DEBUG_SLAB depends on SLAB Ingo Molnar
@ 2005-12-11 14:23 ` Ingo Molnar
  2005-12-11 18:08   ` Matt Mackall
  2005-12-12  0:46 ` [patch -mm] DEBUG_SLAB depends on SLAB Matt Mackall
  1 sibling, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2005-12-11 14:23 UTC (permalink / raw)
  To: Matt Mackall; +Cc: linux-kernel, Andrew Morton


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SLOB wishlist
  2005-12-11 14:23 ` SLOB wishlist Ingo Molnar
@ 2005-12-11 18:08   ` Matt Mackall
  0 siblings, 0 replies; 4+ messages in thread
From: Matt Mackall @ 2005-12-11 18:08 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel, Andrew Morton

On Sun, Dec 11, 2005 at 03:23:53PM +0100, Ingo Molnar wrote:
> 
> 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.

>  - 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.

-- 
Mathematics is the supreme nostalgia of our time.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch -mm] DEBUG_SLAB depends on SLAB
  2005-12-11 14:17 [patch -mm] DEBUG_SLAB depends on SLAB Ingo Molnar
  2005-12-11 14:23 ` SLOB wishlist Ingo Molnar
@ 2005-12-12  0:46 ` Matt Mackall
  1 sibling, 0 replies; 4+ messages in thread
From: Matt Mackall @ 2005-12-12  0:46 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Andrew Morton, linux-kernel

On Sun, Dec 11, 2005 at 03:17:16PM +0100, Ingo Molnar wrote:
> another SLOB related patch: make DEBUG_SLAB depend on SLAB.
> 
> Signed-off-by: Ingo Molnar <mingo@elte.hu>

Acked-by: Matt Mackall <mpm@selenic.com>

> 
> Index: linux/lib/Kconfig.debug
> ===================================================================
> --- linux.orig/lib/Kconfig.debug
> +++ 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

-- 
Mathematics is the supreme nostalgia of our time.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-12  0:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-11 14:17 [patch -mm] DEBUG_SLAB depends on SLAB Ingo Molnar
2005-12-11 14:23 ` SLOB wishlist Ingo Molnar
2005-12-11 18:08   ` Matt Mackall
2005-12-12  0:46 ` [patch -mm] DEBUG_SLAB depends on SLAB Matt Mackall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome