Oprofile - 使用 operf 在 opreport 中显示 INST_RETIRED 和 l1d_replacement 事件

Oprofile - using operf to show INST_RETIRED and l1d_replacement events in opreport

主持人:Ubuntu 14.04 Opef 版本:0.9.9

我想在 opreport 中显示两个事件,因此我输入以下命令 运行 operf:

operf ./l1thrash -e l1d_replacement:10000 -e INST_RETIRED:10000 --separate=cpu

几秒钟后,终端显示 "Profiling done"

然后我输入:

opreport

我没有指定路径,因为手册页表明数据自动保存在"oprofile_data"中。

但是,输出没有显示 "l1d_replacement" 和 "INST_RETIRED" 事件。

CPU: Intel Haswell microarchitecture, speed 3.5e+06 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted)with  a unit mask of 0x00 (No unit mask) count 100000
CPU_CLK_UNHALT...|
samples|      %|
------------------
 708080 100.000 l1thrash
CPU_CLK_UNHALT...|
  samples|      %|
------------------
   707010 99.8489 l1thrash
     1068  0.1508 no-vmlinux
        1 1.4e-04 ld-2.19.so
        1 1.4e-04 libc-2.19.so

我想我错过了一些让这两个事件出现在 opreport 上的东西。

有什么想法吗?谢谢

我已经弄清楚如何在使用 opref 时在 opreport 中处理这两个事件。

命令如下:

operf -e l1d_replacement:xxxxxx -e INST_RETIRED:xxxxxx --separate-c ( execute your application here ) 

opreport cpu:1

你应该有这两个事件出现。