This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: function return value


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]