【已解决】Oprofile的问题:opreport报错

Godbach
【已解决】Oprofile的问题:opreport报错

环境为虚拟机,内核2.6.20
总是报错:
debian:/home/checksum# opreport
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files

内核中该配置的地方也都加上了,还是不行。
昨晚在物理机上可以用了,虚拟机还是不行。Oprofile是完全不支持虚拟机,还是某些功能不支持虚拟机呢?


----基本上确定为虚拟机下没法使用Oproifile

[[i] 本帖最后由 Godbach 于 2008-5-10 11:39 编辑 [/i]]

Godbach
VMware

OProfile can't work with VMware when using performance counter interface. A workaround is to use RTC mode (2.4 kernel) or timer interrupt mode (2.6 kernel)

Oprofile中是这样提到虚拟机的,是不是相关的计数功能接口不能使用。我们一般在使用基于事件计算代码效率的情况下用的就是计数,因此在虚拟机下没法使用

不知理解的对吗?

[[i] 本帖最后由 Godbach 于 2008-5-9 14:21 编辑 [/i]]