From: "jistone at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug translator/12770] loc2c generates an unsupported deref(8,...) on i686
Date: Tue, 17 May 2011 16:45:00 -0000 [thread overview]
Message-ID: <bug-12770-6586-kaZq0fzK4q@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-12770-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12770
--- Comment #1 from Josh Stone <jistone at redhat dot com> 2011-05-17 16:45:06 UTC ---
It seems that we have this issue with any 8-byte memory access. A smaller
test:
$ cat deref8.h
struct foo { long long bar; };
$ stap -e 'probe begin { println(@cast(0, "foo", "<deref8.h>")->bar) }' -vp2
Pass 1: parsed user script and 76 library script(s) using
191836virt/22452res/2832shr kb, in 130usr/20sys/158real ms.
# functions
_dwarf_cast_get_cast_0:long (pointer:long)
%{
#define fetch_register u_fetch_register
#define store_register u_store_register
{
{
uintptr_t addr;
{ // synthesized
addr = THIS->pointer;
}
{ // DWARF expression: 0x23
{
uintptr_t s0;
s0 = addr;
s0 = s0 + 0UL;
addr = s0;
}
}
{ int64_t value = deref (8, addr); THIS->__retvalue = value; }
}
goto out;
if (0) goto deref_fault;
deref_fault:
goto out;
}
/* pure *//* unprivileged */
#undef fetch_register
#undef store_register
%}
# probes
begin /* <- begin */
println(_dwarf_cast_get_cast_0(0))
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s)
using 194484virt/23664res/3356shr kb, in 10usr/0sys/6real ms.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
next prev parent reply other threads:[~2011-05-17 16:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-16 23:57 [Bug translator/12770] New: " jistone at redhat dot com
2011-05-17 16:45 ` jistone at redhat dot com [this message]
2011-05-21 6:11 ` [Bug translator/12770] " jistone at redhat dot com
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-12770-6586-kaZq0fzK4q@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).