[Bug tapsets/4519] nfs.stp nfs.aop.readpage uses field "index" which isn't available in linux 2.6.22-rc1

wenji dot huang at oracle dot com sourceware-bugzilla@sourceware.org
Thu Sep 6 17:22:00 GMT 2007


------- 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.



More information about the Systemtap mailing list