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]

[Bug translator/3016] error accessing anonymous struct/union memeber


------- Additional Comments From mjw at redhat dot com  2008-10-01 11:39 -------
I adjusted the test case a little so that it works on both older and newer
kernels by using the mapping field as in the first comment.

commit dd4918442a55569175bda0575f746e84c99cee58
Author: Mark Wielaard <mjw@redhat.com>
Date:   Wed Oct 1 13:38:16 2008 +0200

    Adjust semok/thirtythree.stp test to pass on older kernels.

diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog
index f3fad07..4825cd2 100644
--- a/testsuite/ChangeLog
+++ b/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-01  Mark Wielaard  <mjw@redhat.com>
+
+       * semok/thirtythree.stp: Use page->mapping instead of page->inuse
+       as annonymous struct value (also available in older kernels).
+
 2008-09-26  Frank Ch. Eigler  <fche@elastic.org>
 
        PR 6916.
diff --git a/testsuite/semok/thirtythree.stp b/testsuite/semok/thirtythree.stp
index d5171f6..9007037 100755
--- a/testsuite/semok/thirtythree.stp
+++ b/testsuite/semok/thirtythree.stp
@@ -1,5 +1,5 @@
 #! stap -p2
 # Per bz3016, this should get through the semantic pass without warnings.
 probe kernel.function("do_mpage_readpage") {
-       printf("\n page ->inuse %u",$page->inuse)
+       printf("\n page->mapping %p",$page->mapping)
 }


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3016

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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