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: Probing executables specified as command line arguments


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


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