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: command line arguments


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



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