kmemleak: Save the stack trace for early allocations
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Aug 2009 13:29:17 +0000 (14:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Aug 2009 13:29:17 +0000 (14:29 +0100)
commitfd6789675ebfb9185cb4fb68dc51010b4e95d952
tree788cf2a0ac4a1db7f2cf6db5c586085548742c85
parenta6186d89c913b176e7339f37a4ec6ccb38b2c5c0
kmemleak: Save the stack trace for early allocations

Before slab is initialised, kmemleak save the allocations in an early
log buffer. They are later recorded as normal memory allocations. This
patch adds the stack trace saving to the early log buffer, otherwise the
information shown for such objects only refers to the kmemleak_init()
function.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
mm/kmemleak.c