This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: $ suffix not working
- From: Mark Wielaard <mjw at redhat dot com>
- To: corpaul <c dot bezemer at tudelft dot nl>
- Cc: systemtap at sourceware dot org
- Date: Thu, 07 Mar 2013 15:37:09 +0100
- Subject: Re: $ suffix not working
- References: <1362663941003-224571.post@n7.nabble.com>
On Thu, 2013-03-07 at 05:45 -0800, corpaul wrote:
> I am a complete newbie with Systemtap and am trying to get the hang of it...
> but when I try to execute from the manual:
> stap -e 'probe kernel.function("vfs_read") {printf("%s\n", $$parms$);
> exit(); }'
>
> I get the following error message:
> root@tud276042:/home/corpaul/Play/probes# stap -e 'probe
> kernel.function("vfs_read") {printf("%s\n", $$parms$); exit(); }'
> semantic error: unable to find local '$parms$' near pc 0xffffffff810efcae in
> vfs_read(/build/buildd-linux-2.6_2.6.32-48squeeze1-amd64-qu4MIV/linux-2.6-2.6.32/debian/build/source_amd64_none/fs/read_write.c)
> (alternatives: file buf count pos ret): identifier '$$parms$' at
> <input>:1:51
> source: probe kernel.function("vfs_read") {printf("%s\n", $$parms$);
> exit(); }
> ^
> Pass 2: analysis failed. Try again with another '--vp 01' option.
>
> How should I fix this?
Which version of stap are you using? (stap --version)
The '$' suffix for pretty printing variables was introduced in 1.3.
Cheers,
Mark