This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Probing executables specified as command line arguments
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Malte Forkel <malte dot forkel at berlin dot de>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 06 Sep 2012 10:44:32 -0400
- Subject: Re: Probing executables specified as command line arguments
- References: <k2a7f4$u2d$1@ger.gmane.org>
malte.forkel wrote:
> I hope this is the right place for the following question...
Sure!
> [...]
> for (i=1; i<=@#; i++) {
> probe process(@i).function("*").call {
> ...
> }
> }
The closest match is probably a sample script [1], which does
something like:
%( $# >= 1 %? probe process(@1).function("*").call { ... } %)
%( $# >= 2 %? probe process(@2).function("*").call { ... } %)
[1] http://sourceware.org/systemtap/examples/general/eventcount.stp
- FChE