This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Accessing structure fields
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Mike Mason <mmlnx at us dot ibm dot com>
- Cc: systemTAP <systemtap at sources dot redhat dot com>
- Date: Wed, 26 Sep 2007 14:31:22 -0400
- Subject: Re: Accessing structure fields
- References: <46FAA25B.1020602@us.ibm.com>
Mike Mason <mmlnx@us.ibm.com> writes:
> I'm trying to understand why some recent changes in nfs_proc.stp were necessary. There are numerous changes like the following:
>
> - count = $rdata->args.count
> - offset = $rdata->args.offset
> + count = $rdata->args->count
> + offset = $rdata->args->offset
These are correct.
> Is '.' supported when accessing structure fields?
No. Only the "->" operator is used to traverse inclusion/pointer type
links. It automagically does the right thing, though looks a bit
funny. One reason for this is the "." string concatenation operator.
- FChE