public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/3016] New: error accessing anonymous struct/union memeber
@ 2006-08-09  8:09 guanglei at cn dot ibm dot com
  2006-08-09 20:00 ` [Bug translator/3016] " dsmith at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: guanglei at cn dot ibm dot com @ 2006-08-09  8:09 UTC (permalink / raw)
  To: systemtap

stap works fine with this script:

probe kernel.function("do_mpage_readpage")
{
  printf("%p", $page)
}

But it will generate an error with this script:

probe kernel.function("do_mpage_readpage")
{
        printf("%p", $page->mapping) 
}

stap -vv says:
...
Pass 1: parsed user script and 40 library script(s) in 310usr/0sys/372real ms.
probe do_mpage_readpage@fs/mpage.c:179 pc=0xc0000000000e716c
semantic error: unresolved target-symbol expression: identifier '$page' at
b.stp:3:15
...

The struct page is defined in "include/linux/mm.h" and mapping is an anonymous
struct member of struct page:

struct page {
      unsigned long flags;
      atomic_t _count; 
      atomic_t _mapcount; 
      union {
          struct {
              unsigned long private;
              struct address_space *mapping;
          };
      ...
}

-- 
           Summary: error accessing anonymous struct/union memeber
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: guanglei at cn dot ibm dot com


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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-01 11:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-09  8:09 [Bug translator/3016] New: error accessing anonymous struct/union memeber guanglei at cn dot ibm dot com
2006-08-09 20:00 ` [Bug translator/3016] " dsmith at redhat dot com
2006-08-09 20:54 ` roland at gnu dot org
2008-05-29 21:25 ` mhiramat at redhat dot com
2008-06-02 15:46 ` mark at klomp dot org
2008-09-19  6:56 ` prerna at linux dot vnet dot ibm dot com
2008-09-26  6:25 ` prerna at linux dot vnet dot ibm dot com
2008-10-01 11:40 ` mjw at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).