public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Stone, Joshua I" <joshua.i.stone@intel.com>
To: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@intel.com>,
		"Mao, Bibo" <bibo.mao@intel.com>,
		"Eugeniy Meshcheryakov" <eugeniy.meshcheryakov@googlemail.com>
Cc: "Systemtap" <systemtap@sources.redhat.com>
Subject: RE: Stap is translating to functions in __exit sections...and later module load fails
Date: Wed, 18 Oct 2006 01:06:00 -0000	[thread overview]
Message-ID: <C56DB814FAA30B418C75310AC4BB279DC8B1DB@scsmsx413.amr.corp.intel.com> (raw)

On Tuesday, October 17, 2006 5:52 PM, Keshavamurthy, Anil S wrote:
> After commenting (i.e not discarding) *(.exit.text) from
> arch/ia64/kernel/vmlinux.lds.S file and booting with this new
> kernel, stap ignores functions in __exit sections and elaborates
> and translates functions properly.

The issue in stap/elfutils when __exit is discarded is that it can't
locate the function properly.  It knows there's a function called
'exit_pfm_fs', but since it can't figure the probe address for the
function (since it was discarded), stap gets an address of 0x0.  Then
blacklist_p tries to figure out what section that's in, and if that
section is .exit.*, the function is rejected.  (Rejection in the case of
function("*") just means it is skipped, not an error.)  In this case the
section is not .exit.* -- or rather, we don't know what section it's in
-- so the probe is added to the list.

Perhaps the simple solution would be to treat a probe address with an
*unknown* section as blacklisted as well.  If we don't know what it is,
it probably isn't safe, right?

> Can someone tell me why this section is not discarded on Ia32?

Not me.  But what is the point of __exit functions if they are always
discarded?  Wouldn't you think that __exit should be kept around for
when the kernel exits?


Josh

             reply	other threads:[~2006-10-18  1:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18  1:06 Stone, Joshua I [this message]
2006-10-18 22:15 ` Keshavamurthy Anil S
  -- strict thread matches above, loose matches on Subject: below --
2006-10-18  0:52 Keshavamurthy, Anil S
2006-10-13 22:28 Stone, Joshua I
2006-10-13 22:37 ` Keshavamurthy Anil S
2006-10-13 23:07 ` Eugeniy Meshcheryakov
2006-10-16 11:27   ` bibo,mao
2006-10-13 21:26 Stone, Joshua I
2006-10-13 21:56 ` Keshavamurthy Anil S
2006-10-13 21:02 Stone, Joshua I
2006-10-13 21:10 ` Keshavamurthy Anil S
2006-10-13 21:29 ` Eugeniy Meshcheryakov
2006-10-13 20:26 Keshavamurthy, Anil S

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=C56DB814FAA30B418C75310AC4BB279DC8B1DB@scsmsx413.amr.corp.intel.com \
    --to=joshua.i.stone@intel.com \
    --cc=anil.s.keshavamurthy@intel.com \
    --cc=bibo.mao@intel.com \
    --cc=eugeniy.meshcheryakov@googlemail.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).