kmemleak: Allow the early log buffer to be configurable.
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 25 Jun 2009 09:16:11 +0000 (10:16 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 25 Jun 2009 09:16:13 +0000 (10:16 +0100)
commita9d9058abab4ac17b79d500506e6c74bd16cecdc
tree3b12a8f093431979b3e26e04f115b4ce942ce363
parent28d0325ce6e0a52f53d8af687e6427fee59004d3
kmemleak: Allow the early log buffer to be configurable.

(feature suggested by Sergey Senozhatsky)

Kmemleak needs to track all the memory allocations but some of these
happen before kmemleak is initialised. These are stored in an internal
buffer which may be exceeded in some kernel configurations. This patch
adds a configuration option with a default value of 400 and also removes
the stack dump when the early log buffer is exceeded.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@mail.by>
Documentation/kmemleak.txt
lib/Kconfig.debug
mm/kmemleak.c