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: Using systemtap


Hi Adrien and others,

Thanks for your reply.

uname -r gives:  2.6.18-164.0.0.0.1.el5xen

rpm -qa | grep kernel
kernel-xen-2.6.18-164.0.0.0.1.el5
kernel-headers-2.6.18-164.0.0.0.1.el5
kernel-xen-devel-2.6.18-164.0.0.0.1.el5

So I think I had the wrong rpm's.
I have very little knowledge about kernels as I am and Oracle dba so
bear with me.

Do I need to add xen specific rpms?

Regards Hans-Peter

-----Original Message-----
From: Adrien Kunysz [mailto:adrien@kunysz.be] 
Sent: woensdag 22 december 2010 16:32
To: Sloot, Hans-Peter
Cc: systemtap@sourceware.org
Subject: Re: Using systemtap

On Wed, Dec 22, 2010 at 03:25:34PM +0100, Sloot, Hans-Peter wrote:
> I want to use systemtap and installed rpm's
> systemtap-0.9.7-5.el5
> systemtap-runtime-0.9.7-5.el5
> kernel-debuginfo-common-2.6.18-164.el5.x86_64.rpm
> kernel-debuginfo-2.6.18-164.el5.x86_64.rpm
> 
> I cannot find the correct kernel-devel rpm.
> 
> uname -a gives as kernel 2.6.18-164.0.0.0.1

This looks strange. I would expect uname -r to say 2.6.18-164.el5.

> I have the following questions:
> 1.Did I install the correct rpm's?

kernel-devel-2.6.18-164.el5.x86_64 is missing.

> 2.Where can I find the correct kernel-devel?

It should be on Red Hat Network (well, 2.6.18-164.0.0.0.1 probably isn't
but 2.6.18-164.el5 probably is).

> 3.Can it be omitted?

Only if you compiled the stap modules on a system that has it.
See
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/System
Tap_Beginners_Guide/cross-compiling.html

> 4.
> When running script probe kernel.function("*") {} I get the errors 
> below:
> Pass 1: parsed user script and 52 library script(s) in 
> 250usr/0sys/265real ms.
> semantic error: libdwfl failure (missing x86_64 kernel/module 
> debuginfo under '/lib/modules/2.6.18-164.0.0.0.1.el5xen/build'): No 
> such file or directory while resolving probe point 
> kernel.function("*") semantic error: no probes found Pass 2: analyzed 
> script: 0 probe(s), 0 function(s), 0 embed(s), 0
> global(s) in 0usr/0sys/6real ms.
> Pass 2: analysis failed.  Try again with another '--vp 01' option.
> 
> Is that due to the missing kernel-devel package or is something else 
> wrong?

It looks like kernel-debuginfo and kernel-devel for that version are
missing. I am not sure where you got version 2.6.18-164.0.0.0.1 because
it doesn't sound like something that was every built by Red Hat and if
it was, I doubt it has ever been released.

What does "rpm -qa | grep kernel" say? What version are you booting on
(as per grub.conf).

Attachment: disclaimer.txt
Description: Text document


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