[Bug translator/24327] @defined unable to handle $$parms and $$vars meta variables
wcohen at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Mar 13 18:26:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24327
--- Comment #2 from William Cohen <wcohen at redhat dot com> ---
This code is related to the automatic printing of global variables. It can be
turned off and allows the reproducer to compile and run:
[wcohen@cervelo systemtap]$ stap -e 'probe
kernel.statement("do_sys_open@fs/open.c:*") {if (@defined($$parms)) printf("%s
\n", $$parms); exit()}'
parse error: expected identifier or statistical operation
saw: operator '-' at <input>:2:30
source: foreach (__val = [__idx0] in -)
^
in synthesized code from: identifier '$$parms' at <input>:1:65
source: probe kernel.statement("do_sys_open@fs/open.c:*") {if
(@defined($$parms)) printf("%s \n", $$parms); exit()}
^
Segmentation fault (core dumped)
[wcohen@cervelo systemtap]$ stap --no-global-var-display -e 'probe
kernel.statement("do_sys_open@fs/open.c:*") {if (@defined($$parms)) printf("%s
\n", $$parms); exit()}'
dfd=0xffffffffffffff9c filename=0x7fe33bffe6e0 flags=0x8000 mode=0x0
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list