[Top] [All Lists]

kernproc on 2.5.?

To: kernprof@xxxxxxxxxxx
Subject: kernproc on 2.5.?
From: "Christoffer H.-Frederiksen" <hall@xxxxxxx>
Date: Tue, 12 Mar 2002 17:29:28 +0100
Sender: owner-kernprof@xxxxxxxxxxx
User-agent: Mutt/1.3.23i
I have tried to get kernproc to run on kernel 2.5.{3,6} without much
success. Is kernproc at all working for the 2.5 series?

I've used kernproc for 2.4.17 with great sucess, but I can't get more
than simple pc-sampling to work on 2.5.3. This would lead to the
question of mcount and gcc. I've compiled the kernel with both the
redhat 2.96 compiler and the redhat gcc3 compiler (3.0.4). None of
them produce a kernel from which I can get any profiling data (other
that pc-sampling with kernprof -i). I've examined the 3.0.4 source
code and the gcc-patch from the sgi ftp-site and the patch doesn't
seem relevant for 3.0.4. Am I correct?

The kernel boots and kernprof seems to be able to use /dev/profile. It
doesn't complain about it and the device-files are there (with the
right major/minor numbers).

[root@harry root]# ls -laF /dev/profile*
crw-r--r--    1 root     root     192,   0 Mar 13 14:50 /dev/profile
crw-r--r--    1 root     root     192,   1 Mar 13 16:36 /dev/profile0
crw-r--r--    1 root     root     192,   2 Mar 13 16:36 /dev/profile1
[root@harry root]# 

When I run the following sequence of programs

./kernprof -m /boot/ -e
./kernprof -m /boot/ -r

./kernprof -m /boot/ -b pc

./iozone  -k 1 -r 8k -i 0 -s 100m -e

./kernprof -m /boot/ -g -o gmon.1req
./kernprof -m /boot/ -e

I just get the following output from kernprof

Total call trace count:          0
Input call graph records:        0
CPU-0 call graph records:        0
Merged call graph records:       0
Output call graph records:       0

And gprof complains that gmon.1req  doesn't contain call-graph
information. Have anybody got a good solution for this?

PS: I am currently compiling gcc-2.95.3 (with patch) to try that ;)


<Prev in Thread] Current Thread [Next in Thread>