diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-06-25 05:16:11 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-06-25 05:16:13 -0400 |
commit | a9d9058abab4ac17b79d500506e6c74bd16cecdc (patch) | |
tree | 3b12a8f093431979b3e26e04f115b4ce942ce363 /Documentation/kmemleak.txt | |
parent | 28d0325ce6e0a52f53d8af687e6427fee59004d3 (diff) |
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>
Diffstat (limited to 'Documentation/kmemleak.txt')
-rw-r--r-- | Documentation/kmemleak.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/kmemleak.txt b/Documentation/kmemleak.txt index 0112da3b9ab8..f655308064d7 100644 --- a/Documentation/kmemleak.txt +++ b/Documentation/kmemleak.txt | |||
@@ -41,6 +41,10 @@ Memory scanning parameters can be modified at run-time by writing to the | |||
41 | Kmemleak can also be disabled at boot-time by passing "kmemleak=off" on | 41 | Kmemleak can also be disabled at boot-time by passing "kmemleak=off" on |
42 | the kernel command line. | 42 | the kernel command line. |
43 | 43 | ||
44 | Memory may be allocated or freed before kmemleak is initialised and | ||
45 | these actions are stored in an early log buffer. The size of this buffer | ||
46 | is configured via the CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE option. | ||
47 | |||
44 | Basic Algorithm | 48 | Basic Algorithm |
45 | --------------- | 49 | --------------- |
46 | 50 | ||