From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18237 invoked by alias); 18 Jun 2009 20:59:05 -0000 Received: (qmail 17244 invoked by uid 48); 18 Jun 2009 20:58:52 -0000 Date: Thu, 18 Jun 2009 20:59:00 -0000 From: "fche at redhat dot com" To: systemtap@sources.redhat.com Message-ID: <20090618205851.10299.fche@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/10299] New: mangle local variable names 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: 2009-q2/txt/msg00956.txt.bz2 % stap -p4 -vv -e 'probe kernel.function("sys_open") {current = 2}' -u fails: /var/tmp/stapvN2tok/stap_a7fd41cd8eb3d886b2ce6c104c151d60_840.c:102: error: function declaration isn’t a prototype /var/tmp/stapvN2tok/stap_a7fd41cd8eb3d886b2ce6c104c151d60_840.c:102: error: field ‘get_current’ declared as a function /var/tmp/stapvN2tok/stap_a7fd41cd8eb3d886b2ce6c104c151d60_840.c: In function ‘probe_1751’: /var/tmp/stapvN2tok/stap_a7fd41cd8eb3d886b2ce6c104c151d60_840.c:129: error: lvalue required as left operand of assignment /var/tmp/stapvN2tok/stap_a7fd41cd8eb3d886b2ce6c104c151d60_840.c:133: error: lvalue required as left operand of assignment Local variables in the context should be mangled similarly as we do for globals - prefixed with l_/s_, to avoid namespace collisions with common kernel symbols. -- Summary: mangle local variable names Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator AssignedTo: systemtap at sources dot redhat dot com ReportedBy: fche at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=10299 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.