diff options
author | Chris Wilson <[email protected]> | 2010-07-28 22:59:02 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2010-07-28 22:59:02 +0100 |
commit | b94de9bb7519f597a3aed521d5eaeb5b02a7cbc0 (patch) | |
tree | 1c2771372fc23c55dd678080aa6529c98f8de371 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | a2b6bf63cb7a3e34bd2e753a6f2c2776b5c8496f (diff) |
lib/scatterlist: Hook sg_kmalloc into kmemleak (v2)
kmemleak ignores page_alloc() and so believes the final sub-page
allocation using the plain kmalloc is decoupled and lost. This leads to
lots of false-positives with code that uses scatterlists.
The options seem to be either to tell kmemleak that the kmalloc is not
leaked or to notify kmemleak of the page allocations. The danger of the
first approach is that we may hide a real leak, so choose the latter
approach (of which I am not sure of the downsides).
v2: Added comments on the suggestion of Catalin.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions