This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/12770] loc2c generates an unsupported deref(8,...) on i686


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]