From: William Cohen <wcohen@redhat.com>
To: Roland McGrath <roland@redhat.com>
Cc: "systemtap@sources.redhat.com" <systemtap@sources.redhat.com>
Subject: Re: Suggestions for localizing problems with identifiers in SystemTap.
Date: Mon, 27 Feb 2006 15:57:00 -0000 [thread overview]
Message-ID: <44032157.30200@redhat.com> (raw)
In-Reply-To: <20060227044039.58F5B180B16@magilla.sf.frob.com>
Roland McGrath wrote:
> The place I would start is with the "loc2c-test" program. This is a simple
> test program built during the systemtap build, but not installed. It uses
> exactly the same infrastructure for finding and interpreting the debug
> information to identify variables at requested source locations.
>
> loc2c-test takes some standard options (see --help), which are the same as
> you can use with e.g. eu-addr2line. Use the -k option to look at the
> current kernel and modules, the same way the systemtap translator does.
> (The other options make it easy to look at info for different kernels.)
> The required argument is an address constant, giving the PC location of the
> probe. The -v output from stap should tell you this.
>
> ./loc2c-test -k 0xc012c9b1
Hi Roland,
Thanks. for the explanation on how to use loc2c-test. It is pretty easy
to get the address of the "function of interest" in the kernel with
something like the following:
nm /usr/lib/debug/lib/modules/`uname -r`/vmlinux \
|grep " detach_pid$" |awk '{print "0x" $1}'
How would one get the addresses for inlined functions and functions in
modules?
-Will
prev parent reply other threads:[~2006-02-27 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 16:40 Summary of nightly tests 20060220 William Cohen
2006-02-20 19:52 ` Martin Hunt
2006-02-20 20:05 ` William Cohen
2006-02-20 20:36 ` Frank Ch. Eigler
2006-02-27 2:24 ` Suggestions for localizing problems with identifiers in SystemTap William Cohen
2006-02-27 4:40 ` Roland McGrath
2006-02-27 15:57 ` William Cohen [this message]
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=44032157.30200@redhat.com \
--to=wcohen@redhat.com \
--cc=roland@redhat.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).