This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/4519] nfs.stp nfs.aop.readpage uses field "index" which isn't available in linux 2.6.22-rc1
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 6 Sep 2007 02:57:15 -0000
- Subject: [Bug tapsets/4519] nfs.stp nfs.aop.readpage uses field "index" which isn't available in linux 2.6.22-rc1
- References: <20070517154029.4519.wcohen@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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 <anonymous>
> <anonymous> <anonymous> 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.