- 论坛徽章:
- 0
|
操作系统是ubuntu 内核是2.6.28-18-server
oprofile是用apt-get安装的
在对内核profile或者不对内核profile的情况下
performance event选择CPU_CLK_UNHALTED, L2_RQSTS, L2_LINES_IN, L1I_READS, L1I_MISSES 都可以正常运行
但是在使用L2_LOCK 和 BUS_LOCK_CLOCKS 用 opreport查看结果的时候,会报错:
opreport error: No sample file found
提示使用opcontrol --dump
在使用这条指令之后仍然不起作用,我的操作顺序是:
opcontrol --reset
opcontrol --init
opcontrol --setup --event:L2_LOCK:6000:0xc0:0:1 --event:BUS_LOCK_CLOCKS:5000:0xc0:0:1
opcontrol --start
./app
opcontrol --dump
opreport
opcontrol --shutdown
注:我不是在虚拟机上使用
请各位前辈指点指点!感激不敬! |
|