This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: command line arguments
Hi -
roland wrote:
> An idea that occurred to me is to have command-line arguments be like
> systemtap function arguments. [...]
>
> global s, n
> probe begin (name: string, number: int) { s = name; n = number; }
> stap foo.stp foobar 123
With the current code, this would look thus:
# global s, n
# probe begin { s = @1; n = $2; }
# stap foo.stp foobar 123
Since the "number" and "name" names aren't being used at the command
line, there seems to be little loss.
(There are other complications with parametrizing the "begin"
probe. For one, there can be many begin probes. :-)
- FChE