From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7888 invoked by alias); 10 Mar 2010 23:36:24 -0000 Received: (qmail 7849 invoked by uid 48); 10 Mar 2010 23:36:12 -0000 Date: Wed, 10 Mar 2010 23:36:00 -0000 From: "jistone at redhat dot com" To: systemtap@sources.redhat.com Message-ID: <20100310233612.11370.jistone@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/11370] New: multi-header @cast X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00638.txt.bz2 Sometimes a header may not #include everything that it needs to stand alone, and so @cast will fail to build a module around it: $ stap -ue 'probe begin { println(&@cast(0, "fs_struct", "kernel")->root) }' --vp 04 Running make -C '/lib/modules/2.6.32.9-67.fc12.x86_64/build' M='/tmp/staprfow66/typequery_kmod_1' modules ARCH="x86_64" V=1 [...] include/linux/fs_struct.h:8: error: expected specifier-qualifier-list before ‘rwlock_t’ include/linux/fs_struct.h:16: warning: ‘struct task_struct’ declared inside parameter list include/linux/fs_struct.h:16: warning: its scope is only this definition or declaration, which is probably not what you want [...] semantic error: type definition 'fs_struct' not found: identifier '@cast' at :2:10 source: println(&@cast(0, "fs_struct", "kernel")->root) ^ We could work around this by allowing @cast to specify multiple headers which should be compiled together. Frank suggested listing them like this: @cast(x, "foo", "kernel")->... -- Summary: multi-header @cast Product: systemtap Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: translator AssignedTo: systemtap at sources dot redhat dot com ReportedBy: jistone at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=11370 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.