public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* .return probes now have $return target variable
@ 2006-06-06 17:42 David Smith
  0 siblings, 0 replies; only message in thread
From: David Smith @ 2006-06-06 17:42 UTC (permalink / raw)
  To: Systemtap List

Yesterday I checked in a fix for BZ 1132
(<http://sourceware.org/bugzilla/show_bug.cgi?id=1132>).

Using a new elfutils interface provided by Roland McGrath, we now use
the dwarf debugging information to find the return value.

So, you can do the following now:

=====================================================
probe kernel.function("sys_read").return
{
    printf("return value is %d\n", $return)
}
=====================================================

As a result of adding the "$return" functionality, the old retval()
function is now deprecated.  If you have any existing scripts that use
the retval() function, please update them to use the new "$return"
target variable.

In a few weeks the retval() function will be removed.

-- 
David Smith
dsmith@redhat.com
Red Hat, Inc.
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-06 17:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-06 17:42 .return probes now have $return target variable David Smith

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