我在带有 2 个 Xeon E5504 处理器的 IBM HS22 刀片上安装了 debian 5.0 linux 服务器。我发现 oprofile 在此设置中无法识别硬件性能计数器,只有定时器中断可用:
# opcontrol -l
Using timer interrupt.
# cat /dev/oprofile/cpu_type
timer
系统信息为:
# cat /etc/issue.net
Debian GNU/Linux 5.0
# uname -a
Linux xxx 2.6.26-2-686-bigmem #1 SMP Mon Jun 21 06:45:17 UTC 2010 i686 GNU/Linux
oprofile 是使用 apt 从 debian 存储库安装的。
# opcontrol --version
opcontrol: oprofile 0.9.3 compiled on Feb 10 2008 12:08:26
我应该怎么做才能启用硬件性能计数器?谢谢!