public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat.com>
To: deepak.venkatesh@wipro.com
Cc: bala.venu@wipro.com, giribalaji.ragavan@wipro.com,
	       systemtap@sourceware.org
Subject: Re: ERROR: Build-id mismatch
Date: Tue, 01 Mar 2011 14:43:00 -0000	[thread overview]
Message-ID: <20110301144329.GG9417@redhat.com> (raw)
In-Reply-To: <81939A763626854B8ECA106278B28F3402D97A7E@BLR-SJP-MBX02.wipro.com>

Hi -

On Tue, Mar 01, 2011 at 07:48:53PM +0530, deepak.venkatesh@wipro.com wrote:
>     I am trying to execute the following sample.stp script.
> global count=0
> probe kernel.function("open") {
>   count++
>   printf( "sys_sync called %d times, currently by pid %d\n", count,
> pid());
> }

OK.  (I didn't know there was a function named "open".)


> I am getting the following error:
> [...]
> ERROR: Build-id mismatch: "kernel" vs. "vmlinux-2.6.35-26-generic" byte
> 0 (0x9e vs 0x61) rc 0 0 

> The steps I followed for installing systemtap are:
> 1. Downloaded and installed following packages:
> linux-image-2.6.35-26-generic_2.6.35-26.46~utrace0_i386.deb,
> linux-headers-2.6.35-26_2.6.35-26.46~utrace0_all.deb,
> linux-headers-2.6.35-26-generic_2.6.35-26.46~utrace0_i386.deb and
> linux-image-2.6.35-26-generic-dbgsym_2.6.35-26.46_i386.ddeb in the same
> order.

The problem is that the ~utrace0 PPA does not include a matching ddeb
file, which means that the kernel debuginfo that systemtap has found
does not match the kernel that you're actually running.  Either the
PPA would need to ship .ddeb's, or you might have to hand-rebuild the
kernel from the PPA sources, and save the .ddeb that should be
produced.

Another possibility is to only use probes that do not require kernel
debuginfo.  One possibility for your script is
kprobe.function("open"), which should work, but cannot supply any
$context variables for parameters.  That's OK because your script
doesn't require any.  Also, kernel.trace("...") should work fine (and
including $context variables).

- FChE

           reply	other threads:[~2011-03-01 14:43 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <81939A763626854B8ECA106278B28F3402D97A7E@BLR-SJP-MBX02.wipro.com>]

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=20110301144329.GG9417@redhat.com \
    --to=fche@redhat.com \
    --cc=bala.venu@wipro.com \
    --cc=deepak.venkatesh@wipro.com \
    --cc=giribalaji.ragavan@wipro.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).