diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-07 10:32:58 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-08 14:25:13 +0100 |
commit | 2587362eaf5c9df4e08de11e6340e3c4a88ed4c8 (patch) | |
tree | 90fc902a3c131146981164b859ed009d20157333 /include/linux/slub_def.h | |
parent | b87324d082d9d898e3c06b2a07a2b94b2430b8ba (diff) | |
download | blackbird-op-linux-2587362eaf5c9df4e08de11e6340e3c4a88ed4c8.tar.gz blackbird-op-linux-2587362eaf5c9df4e08de11e6340e3c4a88ed4c8.zip |
kmemleak: Scan objects allocated during a scanning episode
Many of the false positives in kmemleak happen on busy systems where
objects are allocated during a kmemleak scanning episode. These objects
aren't scanned by default until the next memory scan. When such object
is added, for example, at the head of a list, it is possible that all
the other objects in the list become unreferenced until the next scan.
This patch adds checking for newly allocated objects at the end of the
scan and repeats the scanning on these objects. If Linux allocates
new objects at a higher rate than their scanning, it stops after a
predefined number of passes.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/linux/slub_def.h')
0 files changed, 0 insertions, 0 deletions