[Bug translator/14924] warn on complex $ptr->foo expressions in .return probes
mcermak at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Nov 14 15:51:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=14924
--- Comment #10 from Martin Cermak <mcermak at redhat dot com> ---
Created attachment 9630
--> https://sourceware.org/bugzilla/attachment.cgi?id=9630&action=edit
possible patch
First round of full testing and fixes. ITSM there is now a slight syntactical
issue with @defined in return probes: What was earlier easily expressible like
e.g. this:
=======
if (@defined($s)) {
bytes_req = $s->size
...
}
else
...
=======
does now probably need following handling:
=======
if (@entry(@defined($s))) {
bytes_req = @entry(@choose_defined($s->size, 0))
...
}
else
...
=======
I'm not sure I like this, because it's not syntactically terse enough, and it
requires a "default" value which possibly can cause collisions. Thoughts?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list