[Bug translator/9773] New: On x86_64, systemtap sometimes fails to retrieve a local variable
srikar at linux dot vnet dot ibm dot com
sourceware-bugzilla@sourceware.org
Wed Jan 21 15:01:00 GMT 2009
On a fedora machine running 2.6.23 kernel systemtap fails to retreive a local
variable of a non-inline function. This only happens on a x86_64 machine.
Not faced the same problem on a i686 machine,
# grep aio_complete /proc/kallsyms
ffffffff810b25c2 T aio_complete
ffffffff8134f260 r __ksymtab_aio_complete
ffffffff8135e51f r __kstrtab_aio_complete
# cat /tmp/a.stp
probe kernel.statement("aio_complete@fs/aio.c:1012")
{
printf("%d %d\n", $ring->head, $ring->tail)
}
selected source file 'fs/aio.c'
selected function aio_complete
probe aio_complete@fs/aio.c:1012 kernel section=.text pc=0xffffffff810b27bf
finding location for local 'ring' near address ffffffff810b27bf, module bias 0
finding location for local 'ring' near address ffffffff810b27bf, module bias 0
Eliding side-effect-free singleton block operator '{' at /tmp/a.stp:2:1
Resolution problem with probe probe_1383
printf("%d %d\\n", $ring->head, $ring->tail)
semantic error: failed to retrieve location attribute for local 'ring'
(dieoffset: 0x7f1a26): identifier '$ring' at /tmp/a.stp:3:27
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
80usr/40sys/122real ms.
Pass 2: analysis failed. Try again with more '-v' (verbose) options.
Running rm -rf /tmp/stapJoPSXo
# /usr/local/bin/stap -V
SystemTap translator/driver (version 0.8/0.137 non-git sources)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
# cat ../SNAPSHOT
1c1de83d57f78c7d3f38c1e40ebabf1a286c3b04
#
I have seen this problem with older version of systemtap and elfutils too.
--
Summary: On x86_64, systemtap sometimes fails to retrieve a local
variable
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: srikar at linux dot vnet dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9773
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list