On Sun, Apr 19, 2015 at 11:36 AM, yoma sophian <[email protected]> wrote:
> hi all:
> I found in alloc_bootmem_bdata, kmem_cache_alloc, kmalloc, vmalloc,
> they will call kmemleak_alloc.
>
> Would anyone know why we have to do so for calling kmemleak_alloc at
> different places?

AFAIK this is used for accounting allocated memory in order to easily track
down memory leaks.

It is implemented by the kmemleak detector.

thanks,
Daniel.

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to