This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: FW: function return value
- From: "John Liang" <jliang at ibrix dot com>
- To: "'Frank Ch. Eigler'" <fche at redhat dot com>
- Cc: <systemtap at sources dot redhat dot com>
- Date: Wed, 7 Mar 2007 11:51:31 -0500
- Subject: RE: FW: function return value
- References: <006701c760d4$32170090$ee04a8c0@ibrixfaf958395> <20070307163520.GE27273@redhat.com>
FchE,
The function I am interested in returns a dentry pointer.
Does $return have to be an integral type?
Thanks,
--
John Liang
-----Original Message-----
From: Frank Ch. Eigler [mailto:fche@redhat.com]
Sent: Wednesday, March 07, 2007 11:35 AM
To: John Liang
Cc: systemtap@sources.redhat.com
Subject: Re: FW: function return value
Hi -
> Thanks for your help. I actually sent out one in the morning as
> following. Did you see it? Since I did not receive the following
> email, I was thinking maybe I did not get the right email address to
> send to.
The machine that hosts the project routinely rejects HTML mail.
Maybe that's the problem. Just go for plain text.
> [...] Is there a way to get the return value of a function in
> systemstap?
Certainly. In function().return probes, "$return" gives the value
of the return value, assuming it is a suitable integral type.
- FChE