From: Roland McGrath <roland@redhat.com>
To: Mark Wielaard <mjw@redhat.com>
Cc: systemtap@sourceware.org
Subject: Re: PR10000: emit _stp_relocate* calculations correctly for kernel/module global $data (Was: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-0.9-238-g432f054)
Date: Mon, 13 Apr 2009 18:33:00 -0000 [thread overview]
Message-ID: <20090413183258.4BDBEFC299@magilla.sf.frob.com> (raw)
In-Reply-To: Mark Wielaard's message of Thursday, 9 April 2009 16:22:12 +0200 <1239286932.2442.54.camel@fedora.wildebeest.org>
> So what we could do at this time is make sure sym.value is between the
> reported base of the module and the end of the module as returned by
> dwfl_module_info() Then at least we only process "sane values" (even
> though they might not be real function or data symbols).
That seems like a reasonable heuristic.
> We exclude those since in some kernels on some architectures have vDSO
> names marked as SHN_ABS && STT_FUNC (instead of STT_NOTYPE). Maybe we
> should move the SHN_ABS check to only the kernel module.
Ah, right. Or perhaps just use the heuristic above to cover that case.
> > For anal reasons, the &shndx filled by dwfl_module_getsym is what you use
> > for the actual symbol, not st_shndx--but st_shndx is what you test for the
> > SHN_* constants.
>
> ehm, ok, odd.
SHN_LORESERVE is 0xff00, so to have more than 65279 sections, the indices
have to be treated disjointly from the st_shndx values that might be those.
> Nice, that is the interface I want!
Ok, I'll merge it for 0.141.
> Unfortunately we also have to work with older versions.
> But I guess I can already add the check for shndxp != -1 and it will
> start working properly with newer versions.
Yes. And you might use an _ELFUTILS_PREREQ check around the heuristic you
apply to filter out the uninteresting symbols. Or, you could use getelf
and getscn and check for SHF_ALLOC--a real, proper check, not a heuristic
guess. You'd definitely want that code only under _ELFUTILS_PREREQ, since
it introduces undesireable performance effects.
Thanks,
Roland
next prev parent reply other threads:[~2009-04-13 18:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090327155519.19560.qmail@sourceware.org>
2009-04-08 10:53 ` Mark Wielaard
2009-04-08 20:15 ` Roland McGrath
2009-04-08 22:52 ` Mark Wielaard
2009-04-09 0:56 ` Roland McGrath
2009-04-09 14:22 ` Mark Wielaard
2009-04-13 18:33 ` Roland McGrath [this message]
2009-04-16 10:28 ` Mark Wielaard
2009-04-16 20:54 ` Roland McGrath
2009-04-17 8:42 ` Mark Wielaard
2009-04-17 21:18 ` Roland McGrath
2009-04-17 21:48 ` Mark Wielaard
2009-04-17 22:28 ` Roland McGrath
2009-04-18 11:41 ` Mark Wielaard
2009-04-19 22:29 ` Roland McGrath
2009-04-20 16:13 ` PR10000: emit _stp_relocate* calculations correctly for kernel/module global $data Frank Ch. Eigler
2009-04-20 19:13 ` Roland McGrath
2009-04-21 7:46 ` Mark Wielaard
2009-04-21 20:56 ` Roland McGrath
2009-04-22 11:19 ` Mark Wielaard
2009-04-22 20:08 ` Roland McGrath
2009-04-23 6:24 ` Ananth N Mavinakayanahalli
2009-04-23 11:03 ` Mark Wielaard
2009-04-24 6:08 ` 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=20090413183258.4BDBEFC299@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=mjw@redhat.com \
--cc=systemtap@sourceware.org \
/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).