This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: command line arguments
Hi -
> It would indeed be nice if $N could be dynamically be typed, especially
> since the other $target variables are, but I can see how this would be
> hard.
That's the heuristic I was talking about. One problem is that several
places like probe point functors (.statement(), .function()) accept
*both* string or number literals.
> The @ is ok, but it doesn't really say "string" to me. Perhaps a
> single-quote or backquote might be better - '1 or `1?
Or perhaps a backslash, as in regexps.
> Another option is to allow expansion of $N within string literals [...]
> # stap -e 'probe kernel.function("$1") { print($2) }' sys_open 4
But then normal dollar signs would have to be quoted.
- FChE