command line arguments
Martin Hunt
hunt@redhat.com
Fri Feb 24 05:52:00 GMT 2006
On Thu, 2006-02-23 at 17:42 -0500, Frank Ch. Eigler wrote:
> # stap -e 'probe kernel.function(@1) { print($2) }' sys_open 4
>
> The @ vs $ distinction encodes whether the numbered argument should be
> pasted as a string or number literal. I considered guessing but
> heuristics don't seem to belong somewhere so critical.
Why not do things the standard way and just pass all the args in as
strings?
Encoding the type in the args makes the command line very inflexible. No
way to do variable args. No way to do standard options, etc.
Martin
More information about the Systemtap
mailing list