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: Accessing structure fields


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


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