kernprof
[Top] [All Lists]

Kernprof doesn't work????

To: kernprof@xxxxxxxxxxx
Subject: Kernprof doesn't work????
From: Ondrej Valousek <ondrejv@xxxxxxxxxx>
Date: Fri, 2 Nov 2001 16:18:50 +0100
Organization: S3 Group
Sender: owner-kernprof@xxxxxxxxxxx
Hi all,
I have this problem:
I've installed new 2.4.13 kernel on my RedHat 7.0 Linux box.
I've patched this kernel with the profiling patch.
I've compiled the kernel with gcc 2.960000731 (shipped with RedHat) - I've 
taken a look at the patch for gcc as well, but I was unable to apply it as 
the file ..../linux.h was different than the patch expected. So, I assumed 
gcc 2.96 is OK.
First error:
I managed to boot the new kernel, but I was unable to include any module.
Second error:
I've made /dev/profile and ran kernprof to test it, but kernprof returned 
zero (no hits to any function). I tried every flag to kernprof.

Insmod refuses to load any module to the kernel - it complains about 
unresolved external symbol mcount in each module. The most crasy thing is 
that mcount IS actually exported by kernel (according to /proc/ksyms), but 
with tail "_Rsmp_b4390f9a" which is not (nm -g objfile) expected by the 
module.
I tried to compile the kernel with the brand new gcc3.0.1 but with the same 
results.
Does anyone have any suggestion? I need help please.
Thank in advance.
Ondrej Valousek

<Prev in Thread] Current Thread [Next in Thread>
  • Kernprof doesn't work????, Ondrej Valousek <=