From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54160 invoked by alias); 13 Mar 2019 21:06:14 -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 54118 invoked by uid 48); 13 Mar 2019 21:06:11 -0000 From: "wcohen at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/24327] @defined unable to handle $$parms and $$vars meta variables Date: Wed, 13 Mar 2019 21:06:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: wcohen at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00069.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24327 William Cohen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from William Cohen --- The following patch checked into upstream systemtap fixes the problem. commit 76517421a569be2d7cd90302f15b63d5cfb0bc75 (HEAD -> master, origin/mas= ter, origin/HEAD) Author: Jafeer Uddin Date: Wed Mar 13 16:12:45 2019 -0400 PR24327: Remove printing of unused synthetic globals The handling of DW_OP_GNU_entry_value introduces synthetic global variables that after optimizations may end up not being used. The default behaviour is to print out the values of unsued globals in user scripts. This printing is intended for user defined globals and shouldn't occur with the generated globals. The reproducer works fine now: $ ../install/bin/stap -e 'probe kernel.statement("do_sys_open@fs/open.c:*") {if (@defined($$parms)) printf("%s \n", $$parms); exit()}' dfd=3D0xffffffffffffff9c filename=3D0x7ffd2e4c4590 flags=3D0x98800 mode=3D0= x0 --=20 You are receiving this mail because: You are the assignee for the bug.