From: Josh Stone <jistone@redhat.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: Zoltan Kiss <zoltan.kiss@linaro.org>, systemtap@sourceware.org
Subject: Re: process().statement() doesn't seem to work
Date: Fri, 10 Jul 2015 22:59:00 -0000 [thread overview]
Message-ID: <55A04E3D.4060207@redhat.com> (raw)
In-Reply-To: <y0mio9te67a.fsf@fche.csb>
On 07/09/2015 07:50 AM, Frank Ch. Eigler wrote:
>
> jistone wrote:
>
>> [...] The behavior of .return variables is often suprising to
>> people. [...] But we cheat a little and also save values from the
>> *entry* of the function for you. That's most useful for the $$parms
>> string or any of the individual parameters. [...]
>
> Should we deprecate this behavior, now that the superceding @entry()
> construct is itself quite old?
As in, make .return $var an error and require explicit @entry($var) ?
@entry is inferior in one important way: it doesn't know the type of the
thing being saved until later, in the type resolution phase. We might
be able to shortcut this for special cases, including $var, but a
general expression could end up as a string or a long.
For instance, in dwarf_var_expanding_visitor::visit_entry_op it must
always use gen_mapped_saved_return, with a global map and all the
indexing and locking that entails, rather than the nicer kretprobe data
pouch via gen_kretprobe_saved_return. Maybe that could be redesigned to
not care about the type so soon, but for now it needs to know up front.
The autocast dwarf types also fail through @entry, PR18579.
https://sourceware.org/bugzilla/show_bug.cgi?id=18579
next prev parent reply other threads:[~2015-07-10 22:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 18:58 Zoltan Kiss
2015-06-29 23:39 ` Josh Stone
2015-07-09 14:49 ` Frank Ch. Eigler
2015-07-10 22:59 ` Josh Stone [this message]
2015-07-20 17:54 ` Zoltan Kiss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A04E3D.4060207@redhat.com \
--to=jistone@redhat.com \
--cc=fche@redhat.com \
--cc=systemtap@sourceware.org \
--cc=zoltan.kiss@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).