lkml.org 
[lkml]   [2009]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[RFC PATCH 0/3] kmemleak: Add support for the bootmem allocator
From
Date
Hi,

In the last few days, I went through of false positives reported by
kmemleak and it turns out some of them were caused by not tracking
alloc_bootmem* calls. Rather than adding more and more kmemleak
annotations throughout the kernel, I decided to add support for tracking
all the alloc_bootmem* and free_bootmem calls.

The latter may not have a corresponding alloc_bootmem* pair or it may
only free part of a block. I changed kmemleak to support this usage.

Thanks for your feedback.


Catalin Marinas (3):
kmemleak: Remove alloc_bootmem annotations introduced in the past
kmemleak: Add callbacks to the bootmem allocator
kmemleak: Allow partial freeing of memory blocks


include/linux/kmemleak.h | 4 +++
kernel/pid.c | 7 ------
mm/bootmem.c | 36 ++++++++++++++++++++++++------
mm/kmemleak.c | 55 ++++++++++++++++++++++++++++++++++++++++++----
mm/page_alloc.c | 14 +++---------
5 files changed, 86 insertions(+), 30 deletions(-)

--
Catalin


\
 
 \ /
  Last update: 2009-07-06 12:55    [W:0.111 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site