This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: discussion about registering task_finder in user space probing


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]