This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10408] IA-32 - stap unable to decode parameter location using DWARF
- From: "mhiramat at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 20 Aug 2009 21:09:34 -0000
- Subject: [Bug translator/10408] IA-32 - stap unable to decode parameter location using DWARF
- References: <20090717091749.10408.ananth@in.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mhiramat at redhat dot com 2009-08-20 21:09 -------
Thanks, I've checked that stap works with elfutils-0.142.
$ stap --vp 02 -r 2.6.31-rc6-tip -e 'probe kernel.function("sys_epoll_wait")
{print($epfd)}' -p2
probe sys_epoll_wait@/home/mhiramat/ksrc/linux-2.6-tip/fs/eventpoll.c:1321
kernel reloc=.dynamic section=.text pc=0xc10b3d0d
# functions
_dwarf_tvar_get_epfd_0:long ()
%{{
{
intptr_t addr;
intptr_t frame_base;
{ // DWARF expression: 0x92(4,4)
{
intptr_t s0;
s0 = fetch_register (4) + 4L;
frame_base = s0;
}
}
{ // DWARF expression: 0x91
{
intptr_t s0;
s0 = frame_base + 0L;
addr = s0;
}
}
{ int32_t value = deref (4, addr);THIS->__retvalue = value; }
}
goto out;
if (0) goto deref_fault;
deref_fault:
goto out;
}
/* pure */%}
# probes
kernel.function("sys_epoll_wait@/home/mhiramat/ksrc/linux-2.6-tip/fs/eventpoll.c:1321")
/* pc=_stext+0xb2c25 */ /* <- kernel.function("sys_epoll_wait") */
print(_dwarf_tvar_get_epfd_0())
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
540usr/90sys/628real ms.
Running rm -rf /tmp/stapgtVMtt
However, we'll need to wait for new gcc.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10408
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.