This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: command line arguments
- From: Martin Hunt <hunt at redhat dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 23 Feb 2006 21:52:10 -0800
- Subject: Re: command line arguments
- Organization: Red Hat Inc.
- References: <20060223224218.GE20902@redhat.com>
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