From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 716 invoked by alias); 26 Sep 2007 18:31:35 -0000 Received: (qmail 709 invoked by uid 22791); 26 Sep 2007 18:31:35 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Sep 2007 18:31:32 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l8QIVUBR013061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 26 Sep 2007 14:31:30 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8QIVT0n004274; Wed, 26 Sep 2007 14:31:29 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l8QIVT5b014583; Wed, 26 Sep 2007 14:31:29 -0400 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 392AE8001FF; Wed, 26 Sep 2007 14:31:29 -0400 (EDT) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id l8QIVRvp008552; Wed, 26 Sep 2007 14:31:27 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id l8QIVMm8008550; Wed, 26 Sep 2007 14:31:22 -0400 X-Authentication-Warning: ton.toronto.redhat.com: fche set sender to fche@redhat.com using -f To: Mike Mason Cc: systemTAP Subject: Re: Accessing structure fields References: <46FAA25B.1020602@us.ibm.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Wed, 26 Sep 2007 22:55:00 -0000 In-Reply-To: <46FAA25B.1020602@us.ibm.com> (Mike Mason's message of "Wed, 26 Sep 2007 11:18:03 -0700") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00722.txt.bz2 Mike Mason 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