From: "Frank Ch. Eigler" <fche@elastic.org>
To: Sharyathi Nagesh <sharyath@in.ibm.com>
Cc: systemtap@sources.redhat.com
Subject: Re: Issues with dwarf APIs
Date: Tue, 02 Jun 2009 13:02:00 -0000 [thread overview]
Message-ID: <20090602130120.GC18940@elastic.org> (raw)
In-Reply-To: <4A248804.3070009@in.ibm.com>
Hi -
> [...]
> 2. dwarf_getlocation_addr(&Dwarf_attribute, addr, &expr,len,1)
> addr: Is current Program counter with in the function boundaries ,
> [...]
> case 2: Is failing even when Dwarf_location Tab is present in the dwarf
> [...]
> In function die for pseries_dedicated_idle_sleep (in ppc64)
> readelf -wi vmlinux reads:
> -------------------------------------
> <2><385581>: Abbrev Number: 96 (DW_TAG_variable)
> 1520738 <385582> DW_AT_name : cpu
> 1520739 <385586> DW_AT_decl_file : 1
> 1520740 <385587> DW_AT_decl_line : 484
> 1520741 <385589> DW_AT_type : <0x378b77>
> 1520742 <38558d> DW_AT_location : 0x5f804 (location list)
> [...]
Check out the location list contents (0x5f804). Most likely the
address you supplied to dwarf_getlocation_addr is not within the range
of addresses that were encoded. This could mean that the variable is
only partially in scope, or that at that particular moment (PC value),
it had no easily encoded location.
Be sure you're using the right PC. If you're doing backtracing, your
PC value will only rarely happen to be the entry address of a
function; more frequently it will be in the middle (at a function call
site).
- FChE
next prev parent reply other threads:[~2009-06-02 13:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-02 5:10 Sharyathi Nagesh
2009-06-02 13:02 ` Frank Ch. Eigler [this message]
2009-06-02 22:58 ` Roland McGrath
2009-06-03 21:13 ` Sharyathi Nagesh
2009-06-03 21:21 ` Roland McGrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090602130120.GC18940@elastic.org \
--to=fche@elastic.org \
--cc=sharyath@in.ibm.com \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).