This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ERROR: Build-id mismatch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]