From: "fche at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug translator/18191] DWARF-based sizeof(), array_size(), typeof() operators
Date: Wed, 01 Apr 2015 22:48:00 -0000 [thread overview]
Message-ID: <bug-18191-6586-y4bbMyqxa2@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-18191-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18191
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fche at redhat dot com
--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
(In reply to Stephane Chazelas from comment #1)
> function sizeof:long (addr:long) %{ /* pure */ /* pragma:symbols */
> STAP_RETVALUE = -1;
> _stp_kallsyms_lookup(STAP_ARG_addr, (unsigned long*)&(STAP_RETVALUE),
> NULL, NULL, NULL);
> %}
Note that the above great start is not actually DWARF-based - it's just
symbol-table based. We might want to do a few things extra:
- rename to symsize (since that's what it does)
- throw an error if the address can't be resolved to a known symbol, instead of
returning a sentinel -1
- having a user-space variant usymsize() that passes 'current' as the last
parameter to the underlying lookup function
--
You are receiving this mail because:
You are the assignee for the bug.
prev parent reply other threads:[~2015-04-01 22:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-01 17:46 [Bug translator/18191] New: " dsmith at redhat dot com
2015-04-01 22:39 ` [Bug translator/18191] " stephane.chazelas+sourceware at gmail dot com
2015-04-01 22:48 ` fche at redhat dot com [this message]
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=bug-18191-6586-y4bbMyqxa2@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.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).