From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14338 invoked by alias); 9 Aug 2006 08:09:40 -0000 Received: (qmail 14319 invoked by uid 48); 9 Aug 2006 08:09:30 -0000 Date: Wed, 09 Aug 2006 08:09:00 -0000 From: "guanglei at cn dot ibm dot com" To: systemtap@sources.redhat.com Message-ID: <20060809080930.3016.guanglei@cn.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/3016] New: error accessing anonymous struct/union memeber X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q3/txt/msg00274.txt.bz2 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.