public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Yuxin_Zhuang@emc.com
To: <fche@redhat.com>
Cc: <systemtap@sources.redhat.com>
Subject: RE: Question about kernel module debug
Date: Fri, 19 Oct 2007 06:32:00 -0000	[thread overview]
Message-ID: <3807473EFFA73343902C7F097E26900001FA4448@CORPUSMX60C.corp.emc.com> (raw)
In-Reply-To: <y0mtzoocmhg.fsf@ton.toronto.redhat.com>

Configuration of my environment:
Machine architecture:	i686
OS: 	RHEL4 with kernel 2.6.9-42.Elsmp
Systemtap version:	0.6
Elfutils :	0.129
GCC:	3.4.6

The content of the script
**************************
probe module("my_module").function("*")
{
	printf( "In the module\n");
}
**************************

The output is as follows:
**************************
Pass 1: parsed user script and 25 library script(s) in 80usr/10sys/136real ms.
semantic error: cannot find module my_module debuginfo: r_offset is bogus
semantic error: no match for probe point
while: resolving probe point module("my_module").function("*")
Pass 2: analyzed script: 2 probe(s), 0 function(s), 0 global(s) in 0usr/30sys/43real ms.
Pass 2: analysis failed.  Try again with more '-v' (verbose) options.
**************************

And the functions in kernel and modules built with the kernel can be probed with no problem.
The module 'my_module' has been built with the debug information not stripped. But systemtap is still looking for a '.ko.debug' file.

Thanks !
ZHUANG Yuxin

-----Original Message-----
From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Frank Ch. Eigler
Sent: 2007年10月19日 2:22
To: Yuxin, Zhuang
Cc: systemtap@sources.redhat.com
Subject: Re: Question about kernel module debug

Yuxin_Zhuang@emc.com writes:

> What do you mean by " There should be no need for the .ko.debug file
> if the basic .ko file was not stripped. "??  Does it means that
> systemtap will get the debug information from the .ko file and will
> not look for the .ko.debug file on the three search paths??

That's right.

> But when the .ko.debug symlink is removed, the result of strace
> shows that without finding the '.ko.debug' file on the three search
> paths systemtap just fails. Saying 'r_offset is bogus'.

That's not right (elfutils error DWFL_E_BADRELOFF).  It's as if
something has corrupted the data.  Please describe the toolchain
version, architecture, and anything else that may be unusual about the
build process.

- FChE

  reply	other threads:[~2007-10-19  6:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16  3:12 Yuxin_Zhuang
2007-10-16  3:24 ` Yuxin_Zhuang
2007-10-16 16:01 ` Frank Ch. Eigler
2007-10-18  2:18   ` Yuxin_Zhuang
2007-10-18  6:17   ` Yuxin_Zhuang
2007-10-18 18:22     ` Frank Ch. Eigler
2007-10-19  6:32       ` Yuxin_Zhuang [this message]
2007-10-18  5:34 Yuxin_Zhuang

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=3807473EFFA73343902C7F097E26900001FA4448@CORPUSMX60C.corp.emc.com \
    --to=yuxin_zhuang@emc.com \
    --cc=fche@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).