Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2003 04:09:44 -0800
From:      Daxbert <daxbert_news@dweebsoft.com>
To:        "" <freebsd-hackers@freebsd.org>
Subject:   HOWTO track resource leaks in kernel modules ?
Message-ID:  <1046174984.3e5b5d084ef50@ra.dweebsoft.com>

next in thread | raw e-mail | index | archive | help
Hi -

I was thinking about making some changes to if_de.c to support a tulip card
which isn't being recognized properly.

To begin this process, I need to make if_de.c export a detach function so it
could be unloaded from the kernel to make debugging of the module a little
easier.  I've implemented a detach function, which at first glance seems ok.

I've run an extremely crude test by kldload / kldunload in an infinte loop for
about an hour... and the system hasn't panic-ed.  And memory utilization doesn't
appear to have grown.  However, I'd like something a bit more accurate.

Where would I look for resource leaks?  Is there a library or toolkit to track
such things for kernel modules? 

Sorry for my ignorance, but most of my Unix development experience has been
centered around apache modules. 

Thanks,

--daxbert

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1046174984.3e5b5d084ef50>