public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* How do I trap the return of a function in a user space process?
@ 2013-09-05 20:36 Martin Martin
  2013-09-05 20:42 ` Yichun Zhang (agentzh)
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Martin @ 2013-09-05 20:36 UTC (permalink / raw)
  To: systemtap

The following systemtap script fails to compile:

probe process("myexe").function("myFun").return { print("hi mom\n") }

It says:

semantic error: while resolving probe point: identifier 'process' at
proxy.stp:6:7 source: probe
process("/home/martin/experiments/systemtap/a.out").function("doSomething").return
^

semantic error: process return probes not available [man
error::inode-uprobes] Pass 2: analysis failed. [man error::pass2] Tip:
/usr/share/doc/systemtap/README.Debian should help you get started.

I want to trap when the function exits, not the process. If I remove
the .return it compiles & runs fine. How do I trap the function exit?

I'm on Ubuntu 13.04, Linux 3.8.0-29-generic, system tap 2.1/0.153.

Thanks,
Martin

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

end of thread, other threads:[~2013-09-09 19:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 20:36 How do I trap the return of a function in a user space process? Martin Martin
2013-09-05 20:42 ` Yichun Zhang (agentzh)
2013-09-06 14:17   ` Martin Martin
2013-09-06 15:57     ` Martin Martin
2013-09-06 16:35       ` Martin Martin
2013-09-07  0:42         ` Frank Ch. Eigler
2013-09-09 12:23           ` Martin Martin
2013-09-09 18:13             ` Mark Wielaard
2013-09-09 18:32               ` Josh Stone
2013-09-09 19:29                 ` Mark Wielaard

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).