This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: module function probe
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: "Mao, Bibo" <bibo dot mao at intel dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Fri, 25 Nov 2005 07:36:46 -0500
- Subject: Re: module function probe
- References: <9FBCE015AF479F46B3B410499F3AE05B0897D8@pdsmsx405>
Hi -
> I wrote one module named probed.ko after compiled, and the other
> is kprobe module named probing.ko which is to probe some function
> defined in probed.ko module.
> [...]
> #insmod probed.ko
> #insmod probing.ko
> #rmmod probed.ko
> #rmmod probing.ko
> [...]
To manage module reference counts in a way that prevents this problem,
systemtap keeps a file descriptor open on some file under
/sys/module/<PROBED>/. By using plain insmod, you are giving up this
protection.
- FChE