public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* $ suffix not working
@ 2013-03-07 13:45 corpaul
  2013-03-07 14:37 ` Mark Wielaard
  0 siblings, 1 reply; 5+ messages in thread
From: corpaul @ 2013-03-07 13:45 UTC (permalink / raw)
  To: systemtap

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?

Thanks! CP



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/suffix-not-working-tp224571.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: $ suffix not working
  2013-03-07 13:45 $ suffix not working corpaul
@ 2013-03-07 14:37 ` Mark Wielaard
  2013-03-07 14:43   ` corpaul
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Wielaard @ 2013-03-07 14:37 UTC (permalink / raw)
  To: corpaul; +Cc: systemtap

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: $ suffix not working
  2013-03-07 14:37 ` Mark Wielaard
@ 2013-03-07 14:43   ` corpaul
  2013-03-07 15:26     ` Timo Juhani Lindfors
  0 siblings, 1 reply; 5+ messages in thread
From: corpaul @ 2013-03-07 14:43 UTC (permalink / raw)
  To: systemtap

That makes sense - I am using v1.2.

I installed Systemtap on Debian in this way (and assumed it was the latest): http://sourceware.org/systemtap/wiki/SystemtapOnDebian
What is the easiest way to update?

Thanks! CP
________________________________
From: Mark Wielaard-4 [via Sourceware.org] [ml-node+s1504n224575h1@n7.nabble.com]
Sent: Thursday, March 07, 2013 3:37 PM
To: Cor-paul Bezemer - EWI
Subject: Re: $ suffix not working

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



________________________________
If you reply to this email, your message will be added to the discussion below:
http://sourceware-org.1504.n7.nabble.com/suffix-not-working-tp224571p224575.html
To unsubscribe from $ suffix not working, click here<http://sourceware-org.1504.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=224571&code=Yy5iZXplbWVyQHR1ZGVsZnQubmx8MjI0NTcxfDEzOTI0MzYwMDk=>.
NAML<http://sourceware-org.1504.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://sourceware-org.1504.n7.nabble.com/suffix-not-working-tp224571p224576.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: $ suffix not working
  2013-03-07 14:43   ` corpaul
@ 2013-03-07 15:26     ` Timo Juhani Lindfors
  2013-03-12  8:10       ` corpaul
  0 siblings, 1 reply; 5+ messages in thread
From: Timo Juhani Lindfors @ 2013-03-07 15:26 UTC (permalink / raw)
  To: corpaul; +Cc: systemtap

corpaul <c.bezemer@tudelft.nl> writes:
> That makes sense - I am using v1.2.
>
> I installed Systemtap on Debian in this way (and assumed it was the latest): http://sourceware.org/systemtap/wiki/SystemtapOnDebian
> What is the easiest way to update?

I'm planning to provide official backports for systemtap starting with
the wheezy release but I'm afraid there is not much point in supporting
them for squeeze anymore.

Could you consider upgrading to wheezy? It still hasn't been released
but it is almost ready.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: $ suffix not working
  2013-03-07 15:26     ` Timo Juhani Lindfors
@ 2013-03-12  8:10       ` corpaul
  0 siblings, 0 replies; 5+ messages in thread
From: corpaul @ 2013-03-12  8:10 UTC (permalink / raw)
  To: systemtap

Updated and works fine now. Thanks!



--
View this message in context: http://sourceware-org.1504.n7.nabble.com/suffix-not-working-tp224571p225105.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-12  8:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-07 13:45 $ suffix not working corpaul
2013-03-07 14:37 ` Mark Wielaard
2013-03-07 14:43   ` corpaul
2013-03-07 15:26     ` Timo Juhani Lindfors
2013-03-12  8:10       ` corpaul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).