This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: FW: function return value
- From: David Smith <dsmith at redhat dot com>
- To: John Liang <jliang at ibrix dot com>
- Cc: "'Frank Ch. Eigler'" <fche at redhat dot com>, systemtap at sources dot redhat dot com
- Date: Wed, 07 Mar 2007 12:23:20 -0600
- Subject: Re: FW: function return value
- References: <006701c760d4$32170090$ee04a8c0@ibrixfaf958395> <20070307163520.GE27273@redhat.com> <007001c760d8$dc6075a0$ee04a8c0@ibrixfaf958395>
John Liang wrote:
FchE,
The function I am interested in returns a dentry pointer.
Does $return have to be an integral type?
Although a pointer is just a special case of an integral type (on most
arches anyway), the translator won't let you do "$return->d_count" to
access the d_count field out of the dentry pointer. I'm not 100%
positive it is possible, but it wouldn't hurt to file a bugzilla against it.
For now, what you'll have to create a function that accesses the
structure for you. Look at the _struct_timeval_u() function in
tapset/aux_syscall.stp for an example.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)