<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 13px;" lang="x-western">Hi!
<br>
<br>
I am trying to profile my custom 2.6.37 linux kernel with
oprofile in centos 5.5, and i have encountered<br>
the following problem. <br>
<br>
(Before everyone starts shouting, I know that custom kernels are
not supported by centos team, however I really <br>
need to run a modified version, due to a project concerning my MSc
thesis. So i hope for your understanding <span
class="moz-smiley-s1"><span> :-) </span></span>.<br>
<br>
I have build the kernel with the following
flags:
<br>
<br>
CONFIG_DEBUG_KERNEL=y
<br>
CONFIG_OPROFILE=y
<br>
# CONFIG_OPROFILE_EVENT_MULTIPLEX is not set
<br>
CONFIG_HAVE_OPROFILE=y
<br>
CONFIG_FRAME_POINTER=y
<br>
CONFIG_KPROBES=y
<br>
CONFIG_HAVE_KPROBES=y
<br>
CONFIG_KPROBE_EVENT=y
<br>
CONFIG_SAMPLE_KPROBES=m
<br>
<br>
under various suggestions i have googled in the net. I run
oprofile using the following instructions:
<br>
<br>
#!/bin/bash
<br>
rm oprof_output.txt
<br>
/usr/bin/opcontrol --init
<br>
/usr/bin/opcontrol --setup --event=CPU_CLK_UNHALTED:100000:0:1:1
--vmlinux /usr/src/kernels/linux-2.6.37/vmlinux
<br>
/usr/bin/opcontrol --reset
<br>
/usr/bin/opcontrol --start
<br>
/usr/bin/opcontrol --stop
<br>
/usr/bin/opcontrol --dump
<br>
<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/bin/opreport
-f -a -l --symbols --image-path=/lib/modules<span
class="moz-txt-tag">/</span></i>$(uname -r)/kernel >>
oprof_output.txt
<br>
<br>
My problem is that the output reported by a simple run contains
many of the following lines
<br>
<br>
304 304 26.0051 26.0051
/vmlinux-unknown /vmlinux-unknown /vmlinux-unknown
<br>
186 490 15.9110 41.9162
/vmlinux-unknown /bin/bash /vmlinux-unknown
<br>
<br>
any idea or suggestion as how to resolve the vmlinux-unknown
problem? I would gladly provide any
<br>
other information you may need.
<br>
<br>
Thanks in advance,
<br>
Yannis
<br>
</div>
</body>
</html>