[Bug translator/24327] @defined unable to handle $$parms and $$vars meta variables

wcohen at redhat dot com sourceware-bugzilla@sourceware.org
Wed Mar 13 21:06:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=24327

William Cohen <wcohen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from William Cohen <wcohen at redhat dot com> ---
The following patch checked into upstream systemtap fixes the problem.

commit 76517421a569be2d7cd90302f15b63d5cfb0bc75 (HEAD -> master, origin/master,
origin/HEAD)
Author: Jafeer Uddin <juddin@redhat.com>
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=0xffffffffffffff9c filename=0x7ffd2e4c4590 flags=0x98800 mode=0x0

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list