This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH 4/7] kprobes: Support probing module __exit function
- From: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>
- To: Masami Hiramatsu <mhiramat at redhat dot com>
- Cc: Andrew Morton <akpm at linux-foundation dot org>, Jim Keniston <jkenisto at us dot ibm dot com>, David Miller <davem at davemloft dot net>, Rusty Russell <rusty at rustcorp dot com dot au>, LKML <linux-kernel at vger dot kernel dot org>, systemtap-ml <systemtap at sources dot redhat dot com>
- Date: Wed, 12 Nov 2008 21:26:29 +0530
- Subject: Re: [PATCH 4/7] kprobes: Support probing module __exit function
- References: <4919F19A.9050904@redhat.com>
- Reply-to: ananth at in dot ibm dot com
On Tue, Nov 11, 2008 at 03:56:58PM -0500, Masami Hiramatsu wrote:
> Allows kprobes to probe __exit routine.
> This adds flags member to struct kprobe. When module is freed(kprobes hooks
> module_notifier to get this event), kprobes which probe the functions in
> that module are set to "Gone" flag to the flags member. These "Gone" probes
> are never be enabled.
> Users can check the GONE flag through debugfs.
>
> This also removes mod_refcounted, because we couldn't free a module if
> kprobe incremented the refcount of that module.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>