From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6483 invoked by alias); 6 Sep 2007 02:57:24 -0000 Received: (qmail 6448 invoked by uid 48); 6 Sep 2007 02:57:15 -0000 Date: Thu, 06 Sep 2007 17:22:00 -0000 Message-ID: <20070906025715.6447.qmail@sourceware.org> From: "wenji dot huang at oracle dot com" To: systemtap@sources.redhat.com In-Reply-To: <20070517154029.4519.wcohen@redhat.com> References: <20070517154029.4519.wcohen@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug tapsets/4519] nfs.stp nfs.aop.readpage uses field "index" which isn't available in linux 2.6.22-rc1 X-Bugzilla-Reason: AssignedTo 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/msg00520.txt.bz2 ------- Additional Comments From wenji dot huang at oracle dot com 2007-09-06 02:57 ------- (In reply to comment #0) > In newer version of the kernel 2.6.22-rc1 the "struct page" doesn't have the > index field. This is triggered by the lket test. However, the following one > liner will also demontrate the problem: > > stap -v -e ' probe nfs.aop.readpage { printf("%d\n", page_index) }' > > Output from testsuite: > > Running > /home/wcohen/stap_snap_200705162206/src/testsuite/systemtap.samples/lket.exp ... > Pass 1: parsed user script and 53 library script(s) in 1932usr/4sys/1948real ms. > > semantic error: field 'index' not found (alternatives: flags _count > lru): identifier '$page' at > /home/wcohen/stap_snap_200705162206/install/share/systemtap/tapset/nfs.stp:842:22 index is packed into anonymous union in struct page since 2.6.22. And the name attribute is missing in dwarf2. So the semantic error is thrown in elaborate phrase. So maybe construct a pure function to access index member. -- What |Removed |Added ---------------------------------------------------------------------------- Summary|nfs.stp nfs.aop.readpage |nfs.stp nfs.aop.readpage |uses field "index" which |uses field "index" which |isn't available in linux |isn't available in linux |2.6.22-rc1 |2.6.22-rc1 http://sourceware.org/bugzilla/show_bug.cgi?id=4519 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.