Re: [PATCH 5/6] slab: Annotate slab

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pekka Enberg
Date: Saturday, August 30, 2008 - 3:50 am

Hi Steve,

On Sat, Aug 30, 2008 at 2:17 AM, Steve VanDeBogart
<vandebo-lkml@nerdbox.net> wrote:

OK, I'm biased (I'm one of the kmemcheck developers) but these hooks
to SLAB are too ugly to live with. My preferred solution is that you
reuse the kmemcheck annotations
kmemcheck_slab_alloc()/kmemcheck_slab_free() we have:

http://git.kernel.org/?p=linux/kernel/git/x86/linux-2.6-tip.git;a=commitdiff;h=30532cb...

Maybe making valgrind code a "UML port" (plus some more) of kmemcheck.


I'm not sure why you want to treat caches with constructor
differently. Sure, the memory regions *are* initialized but from
programmer's point of view you're not supposed to be touching the
memory unless you got it from kmalloc() or kmem_cache_alloc(). Same
goes for kfree() and kmem_cache_free() -- no touchy touchy after you
pass a pointer to either of the functions (unless you're RCU, of
course).

                           Pekka
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] support valgrinding uml, Steve VanDeBogart, (Fri Aug 29, 4:12 pm)
[PATCH 1/6] base: Valgrind headers and Kconfig, Steve VanDeBogart, (Fri Aug 29, 4:14 pm)
[PATCH 2/6] UML: Don't valgrind userspace, Steve VanDeBogart, (Fri Aug 29, 4:15 pm)
[PATCH 3/6] UML and sched: Annotate stacks, Steve VanDeBogart, (Fri Aug 29, 4:16 pm)
[PATCH 4/6] VM: Annotate pagealloc, Steve VanDeBogart, (Fri Aug 29, 4:16 pm)
[PATCH 5/6] slab: Annotate slab, Steve VanDeBogart, (Fri Aug 29, 4:17 pm)
[PATCH 6/6] VM: Annotate vmalloc, Steve VanDeBogart, (Fri Aug 29, 4:18 pm)
Re: [PATCH 5/6] slab: Annotate slab, Pekka Enberg, (Sat Aug 30, 3:50 am)
Re: [PATCH 4/6] VM: Annotate pagealloc, Pekka Enberg, (Sat Aug 30, 3:57 am)
Re: [PATCH 1/6] base: Valgrind headers and Kconfig, Andi Kleen, (Mon Sep 1, 2:32 am)
Re: [PATCH 1/6] base: Valgrind headers and Kconfig, Andi Kleen, (Mon Sep 1, 7:22 am)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, John Reiser, (Tue Sep 2, 7:54 pm)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, Steve VanDeBogart, (Tue Sep 2, 10:08 pm)
Re: [uml-devel] [PATCH 4/6] VM: Annotate pagealloc, Steve VanDeBogart, (Tue Sep 2, 10:25 pm)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, Pekka Enberg, (Wed Sep 3, 2:27 am)
Re: [uml-devel] [PATCH 4/6] VM: Annotate pagealloc, Pekka Enberg, (Wed Sep 3, 2:35 am)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, Pekka J Enberg, (Wed Sep 3, 2:39 am)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, Pekka Enberg, (Wed Sep 3, 2:40 am)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, Steve VanDeBogart, (Wed Sep 3, 8:42 am)
Re: [uml-devel] [PATCH 5/6] slab: Annotate slab, Pekka Enberg, (Thu Sep 4, 12:33 am)