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: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 17 Oct 2016 17:23:55 +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
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jistone at redhat dot com
--- Comment #2 from Josh Stone <jistone at redhat dot com> ---
If we make it a warning, then anyone who wants to be strict (stap -W) will have
to use @entry($foo->bar) whenever that entry-time snapshotting is really what
they want. I think that will be annoying to those who are used to the current
behavior.
Perhaps this needs something softer than a warning, like a note.
FWIW, autocast should make ($foo)->bar possible, for a nicer workaround than
the suggestion involving explicit @cast. Since this breaks up the expression,
only the part inside the parentheses will be entry-saved. Or perhaps that's
even more confusing, that $foo->bar and ($foo)->bar have different behavior.
Plus, it doesn't yet work for @entry($foo)->bar -- see PR18579.
--
You are receiving this mail because:
You are the assignee for the bug.