From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4346 invoked by alias); 12 Feb 2015 21:32:51 -0000 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 Received: (qmail 4249 invoked by uid 48); 12 Feb 2015 21:32:47 -0000 From: "aram.h at mgk dot ro" To: systemtap@sourceware.org Subject: [Bug translator/17966] New: @defined always returns true in return probes Date: Thu, 12 Feb 2015 21:32:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aram.h at mgk dot ro X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00144.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17966 Bug ID: 17966 Summary: @defined always returns true in return probes Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: aram.h at mgk dot ro CC: jistone at redhat dot com @defined can't be used in return probes because it always returns 1. stap -e 'probe process("bash").function("*").return {r0 = @defined($_r0) ? $_r0 : 0; printf ("r0: %d\n", r0); exit ()}' WARNING: function _start return probe is blacklisted: keyword at :1:1 source: probe process("bash").function("*").return {r0 = @defined($_r0) ? $_r0 : 0; printf ("r0: %d\n", r0); exit ()} ^ semantic error: unresolved target-symbol expression: identifier '$_r0' at :1:67 source: probe process("bash").function("*").return {r0 = @defined($_r0) ? $_r0 : 0; printf ("r0: %d\n", r0); exit ()} ^ Pass 2: analysis failed. [man error::pass2] : xgene:tmp; -- You are receiving this mail because: You are the assignee for the bug.