I have read posting like,taking a count of kmalloc() and kfree()..
Any other methods??
I have a few suggestions, but not actually any tools:
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#memleak
There might exist some tools. Some people have written
programs to perform analysis of the source code. They
sometimes post comments to the kernel mailing list with
results. But so far I don't think they have general
leak detection, only some special cases:
http://www.google.com/groups?selm=wfNh.6L9.11%40gated-at.bofh.it
I don't know if the tools are available to the public.
>
> I have read posting like,taking a count of kmalloc() and kfree()..
>
> Any other methods??
Well, first of all kmalloc and kfree are not the only
way to allocate memory. What would be interesting is to
keep track of which source line was responsible for
every current memory allocation. Of course such tracking
will have a cost in terms of both time and memory usage.
--
Kasper Dupont -- der bruger for meget tid paa usenet.
For sending spam use mailto:aaa...@daimi.au.dk
/* Would you like fries with that? */
Hi kasper ,
Thanks for post.
I have gone through the links,first one i have seen it..
Second one,not much useful for my purpose.
Any way let me check how can i track each and every memory allocations.
Good luck.
Thnks again.
HTH
Neil
--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net