* [Bug translator/10622] New: unsuccessful location searches for extern $variables
@ 2009-09-09 21:38 fche at redhat dot com
2009-09-09 21:50 ` [Bug translator/10622] " mjw at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2009-09-09 21:38 UTC (permalink / raw)
To: systemtap
stap -e 'probe kernel.function("do_gettimeofday") { println($xtime) }'
gives
... failed to retrieve location attribute for local 'xtime'.
whereas that die describes itself as "external", and has a friend declaration
that might have the needed location list (a symbol address).
--
Summary: unsuccessful location searches for extern $variables
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10622
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translator/10622] unsuccessful location searches for extern $variables
2009-09-09 21:38 [Bug translator/10622] New: unsuccessful location searches for extern $variables fche at redhat dot com
@ 2009-09-09 21:50 ` mjw at redhat dot com
2009-11-12 6:39 ` wenji dot huang at oracle dot com
2009-11-16 9:52 ` mjw at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mjw at redhat dot com @ 2009-09-09 21:50 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-09-09 21:49 -------
$ stap -e 'probe kernel.function("do_gettimeofday") { printf("xtime.tv_sec:
%d\n", $xtime->tv_sec); }'
semantic error: failed to retrieve location attribute for local 'xtime'
(dieoffset: 0x752637): identifier '$xtime' at <input>:1:73
source: probe kernel.function("do_gettimeofday") { printf("xtime.tv_sec:
%d\n", $xtime->tv_sec); }
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
$ eu-readelf -N --debug-dump=info
/usr/lib/debug/lib/modules/2.6.30.5-43.fc11.i586/vmlinux
[752637] variable
name "xtime"
decl_file 3
decl_line 100
type [74c7b3]
external
declaration
So no location description in this CU. We need to look it up in the symbol table.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10622
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translator/10622] unsuccessful location searches for extern $variables
2009-09-09 21:38 [Bug translator/10622] New: unsuccessful location searches for extern $variables fche at redhat dot com
2009-09-09 21:50 ` [Bug translator/10622] " mjw at redhat dot com
@ 2009-11-12 6:39 ` wenji dot huang at oracle dot com
2009-11-16 9:52 ` mjw at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: wenji dot huang at oracle dot com @ 2009-11-12 6:39 UTC (permalink / raw)
To: systemtap
------- Additional Comments From wenji dot huang at oracle dot com 2009-11-12 06:39 -------
Guess it's related to gcc or fedora debuginfo.
On RHEL5 with self-built 2.6.32-rc6 kernel.
The latest stap works fine both with elfutils 0.141 and 0.142.
$ stap -e 'probe kernel.function("do_gettimeofday") { println($xtime) }'
semantic error: 'struct timespec' is being accessed instead of a member:
identifier '$xtime' at <input>:1:52
source: probe kernel.function("do_gettimeofday") { println($xtime) }
^
Pass 2: analysis failed. Try again with another '--vp 01' option.
Got different message, but seems stap can get location attribute.
$ stap -e 'probe kernel.function("do_gettimeofday") {
printf("xtime.tv_sec:%d\n", $xtime->tv_sec); exit() }'
xtime.tv_sec:1257921482
But failed on FC11, gcc 4.4. The error message like previous comment,
also as comment #11 of bug # 9738.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10622
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug translator/10622] unsuccessful location searches for extern $variables
2009-09-09 21:38 [Bug translator/10622] New: unsuccessful location searches for extern $variables fche at redhat dot com
2009-09-09 21:50 ` [Bug translator/10622] " mjw at redhat dot com
2009-11-12 6:39 ` wenji dot huang at oracle dot com
@ 2009-11-16 9:52 ` mjw at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mjw at redhat dot com @ 2009-11-16 9:52 UTC (permalink / raw)
To: systemtap
------- Additional Comments From mjw at redhat dot com 2009-11-16 09:52 -------
commit 228af5c49c06079e6bfe1daa64ead51b1dc979c7
Author: Mark Wielaard <mjw@redhat.com>
Date: Mon Nov 16 10:02:50 2009 +0100
PR10622 Search for extern $variables in symbol table.
* dwflpp.h (vardie_from_symtable): New method.
* dwflpp.cxx (vardie_from_symtable): New method.
(literal_stmt_for_local): Use vardie_from_symtable when no location
attribute and DW_AT_external.
* testsuite/buildok/xtime.stp: New testcase from PR10622.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10622
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-16 9:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-09 21:38 [Bug translator/10622] New: unsuccessful location searches for extern $variables fche at redhat dot com
2009-09-09 21:50 ` [Bug translator/10622] " mjw at redhat dot com
2009-11-12 6:39 ` wenji dot huang at oracle dot com
2009-11-16 9:52 ` mjw at redhat dot com
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).