Re: How to check if my kernel driver is leaking memory

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

 



2014-03-10 10:44 GMT+05:30 m silverstri <michael.j.silverstri@xxxxxxxxx>:
> Hi,
>
> I am developing a kernel driver. What should I test to make sure my
> kernel driver is not leaking memory?
> 1. under normal operation (when applications open and close my driver properly)
> 2. in error situation (when application open my driver and then it
> crashes without close my driver property)
>
> How can I find out the memory usage used by my driver? so that I can
> monitor it over time.
>

I have earlier come across a similar situation and kmemleak was very helpful.

I documented my steps and you may find it useful:

http://psankar.blogspot.in/2010/11/detecting-memory-leaks-in-kernel.html


-- 
Sankar P
http://psankar.blogspot.com

_______________________________________________
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