kmemleak: Add callbacks to the bootmem allocator
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 7 Jul 2009 09:33:01 +0000 (10:33 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 8 Jul 2009 13:25:14 +0000 (14:25 +0100)
commitec3a354bd46cbdaa7933ba57a142ee2d2dbde0e5
tree7ca4fc5d3ade825a73d9d0d1eb5f0b5e5cccb26d
parent53238a60dd4a679f6fe5613a7ed46899587205cf
kmemleak: Add callbacks to the bootmem allocator

This patch adds kmemleak_alloc/free callbacks to the bootmem allocator.
This would allow scanning of such blocks and help avoiding a whole class
of false positives and more kmemleak annotations.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
mm/bootmem.c