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: 29 Jul 2009 16:58: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-07-29 16:58 -------
Verified on bear Fedora11:
kernel-PAE-2.6.29.6-213.fc11.i686
systemtap-0.9.8-1.fc11.i586
Here is the c code generated by stap -p3.
---
c->last_stmt = "identifier '$epfd' at
/usr/share/systemtap/tapset/syscalls.stp:657:37";
if (unlikely (c->nesting+2 >= MAXNESTING)) {
c->last_error = "MAXNESTING exceeded";
return;
} else {
c->nesting ++;
}
l->__retvalue = 0;
#define return goto out
{
{
{
intptr_t addr;
{ // DWARF expression: 0x71
{
intptr_t s0;
s0 = fetch_register (1) + 0L;
addr = s0;
}
}
{ int32_t value = deref (4, addr);THIS->__retvalue = value; }
---
fetch_register(1) is regs->cx. Should that be reg->sp(or fetch_register(4))?
BTW, this kernel is built with ftrace(mcount).
--
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.