Thread (7 messages) flat view 7 messages, 4 authors, 2009-08-20

Re: [PATCH] Add kmemleak annotations to lmb.c

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2009-08-14 08:25:28

On Fri, 2009-08-14 at 17:56 +1000, Benjamin Herrenschmidt wrote:
On Thu, 2009-08-13 at 16:40 +0100, Catalin Marinas wrote:
quoted
On Thu, 2009-08-13 at 13:01 +1000, Michael Ellerman wrote:
quoted
We don't actually want kmemleak to track the lmb allocations, so we
pass min_count as 0. However telling kmemleak about lmb allocations
allows it to scan that memory for pointers to other memory that is
tracked by kmemleak, ie. slab allocations etc.
Looks alright to me (though I haven't tested it). You can add a
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Actually, Milton pointed to me that we may not want to allow all
LMB chunks to be scanned by kmemleaks, things like the DART hole
that's taken out of the linear mapping for example may need to
be avoided, though I'm not sure what would be the right way to
do it.
I suspect there are more blocks to be scanned than those that shouldn't,
so maybe ignore the latter explicitly using kmemleak_ignore(). This was
raised recently on x86_64 as well which has a memory hole for some
aperture - http://lkml.org/lkml/2009/8/13/237.

-- 
Catalin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help