This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: discussion about registering task_finder in user space probing
- From: David Smith <dsmith at redhat dot com>
- To: wenji dot huang at oracle dot com
- Cc: SystemTAP <systemtap at sources dot redhat dot com>
- Date: Tue, 24 Mar 2009 07:46:52 -0500
- Subject: Re: discussion about registering task_finder in user space probing
- References: <49C8A29C.6040503@oracle.com>
Wenji Huang wrote:
> Hi,
>
> I found our task_finder embedded in each stap_uprob_spec even it is
> same. That will cause many times registering similar task_finder. For
> example,
...
> So we will have 220 times registering similar task_finder. I think
> the probe point is irrelevant to task_finder. Can we just keep only one
> and invoke callbacks to register all the stap_uprobes[i] once interested
> process found?
This is basically already being done, just a bit lower down. Although
several calls to stap_register_task_finder_target() are made, internally
if the process path is the same it only ends up with 1 utrace engine
being attached to a particular task.
See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=9673> for more
details.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)