This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/14924] warn on complex $ptr->foo expressions in .return probes
- From: "mcermak at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 14 Nov 2016 15:51:36 +0000
- Subject: [Bug translator/14924] warn on complex $ptr->foo expressions in .return probes
- Auto-submitted: auto-generated
- References: <bug-14924-6586@http.sourceware.org/bugzilla/>
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.