This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/24327] @defined unable to handle $$parms and $$vars meta variables
- From: "wcohen at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 13 Mar 2019 18:26:17 +0000
- Subject: [Bug translator/24327] @defined unable to handle $$parms and $$vars meta variables
- Auto-submitted: auto-generated
- References: <bug-24327-6586@http.sourceware.org/bugzilla/>
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.