Hi guys,
When I tried to start Oprofile on Xen virtual machines, I encountered some problem.
Physical CPU: Intel E5620.
Xen : version 4.1.1
XenOprofile : version 0.9.5
Oprofile installed on VM: version 0.9.7
Problem:
The opcontrol cannot start on VM (dom1), while it works well on dom0 .
Scene:
Run cmd on dom0:
#opcontrol --start-daemon --active-domains=0,1 --event=LLC_MISSES:100000:0:1:1 --xen=/boot/xen-syms-4.1.1 --vmlinux=/usr/src/kernels/vmlinux
It's OK. Output:
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started
But When i run cmd on dom1:
#opcontrol --reset
#opcontrol --start --vmlinux=/usr/src/linux-source-2.6.32/vmlinux --xen=/boot/xen-syms-4.1.1
Error. Output:
Not enough hardware counters. Need 1 counters but only has 0.
and, when i run:
# ls /dev/oprofile/
Output: backtrace_depth buffer buffer_size buffer_watershed cpu_buffer_size cpu_type dump enable pointer_size stats
i.e. there is no performance counter found in VM (dom1)
What I have tried to solve (but do not work...)
1st: #cat /proc/cpuinfo
Get cpu family : 6
model : 44
2nd: add cpu model "0x2c" to recompile.
But the problem is still there.
|