Re: What is kmemleak_alloc used for?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 19, 2015 at 11:36 AM, yoma sophian <sophian.yoma@xxxxxxxxx> 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
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux