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: help with running systemtap


p v wrote:
Thanks for the reply. I got little bit further but stap is still not working for me. These are the packages installed -

[root@robot ~]# rpm -qa | grep kernel
kernel-devel-2.6.25-14.fc9.i686
kernel-debuginfo-2.6.25-14.fc9.i686
kernel-headers-2.6.25-14.fc9.i386
kerneloops-0.10-11.fc9.i386
kernel-debuginfo-common-2.6.25-14.fc9.i686
kernel-2.6.25-14.fc9.i686

stap does find the debug info it needs to compile but it fails to insmod with "Invalid module format" -

[root@robot ~]# stap -v -k hello.stp
Pass 1: parsed user script and 38 library script(s) in 250usr/10sys/268real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 10usr/0sys/3real ms.
Pass 3: using cached /root/.systemtap/cache/2b/stap_2b11f1a63be8d5e9310e1f646ee698de_264.c
Pass 4: using cached /root/.systemtap/cache/2b/stap_2b11f1a63be8d5e9310e1f646ee698de_264.ko
Pass 5: starting run.
Error inserting module '/tmp/stapvQz24y/stap_2b11f1a63be8d5e9310e1f646ee698de_264.ko': Invalid module format
Pass 5: run completed in 0usr/0sys/4real ms.
Pass 5: run failed.  Try again with more '-v' (verbose) options.
Keeping temporary directory "/tmp/stapvQz24y"

and dmesg spits out -

stap_2b11f1a63be8d5e9310e1f646ee698de_264: version magic '2.6.25.14-108.fc9.i686 SMP mod_unload 686 4KSTACKS ' should be '2.6.25-14.fc9.i686 SMP mod_unload 686 4KSTACKS '

where is the wrong version coming from?
I guess your running kernel is 2.6.25.14-108.fc9.i686, see uname -a.
But your kernel-debuginfo is 2.6.25-14.fc9.i686. Those two don't match as stap requires.


Regards,
Wenji



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