Oprofile operf没有收集任何数据

时间:2014-10-07 17:02:38

标签: oprofile operf

我正在两台几乎相同的机器上测试oprofile版本1.0.0。一方面,它在另一方面完美运行,它根本不收集任何数据。 Oprofile作为源代码下载并在每个盒子上编译和安装 - 使用相同版本的所有库/编译器等

作为root我正在运行并退出推荐的CTRL-c

operf --system-wide

两个盒子上的内核都是

2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

CPU有所不同 - 这是工作operf框

vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
stepping        : 6
cpu MHz         : 2992.426

这是非工作箱

vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) CPU 3.80GHz
stepping        : 10
cpu MHz         : 3790.625

即使第二个CPU不支持硬件配置(不确定要查找的标志)是否有办法使其工作 - 这提到OPROFILE can't get performance data使用定时器模式但是opcontrol在版本1.0中消失了

运行operf.log文件结果

Profiling started at Mon Oct  6 14:22:33 2014
Profiling stopped at Mon Oct  6 14:23:56 2014

-- OProfile/operf Statistics --
Nr. non-backtrace samples: 1264859
Nr. kernel samples: 628924
Nr. user space samples: 635935
Nr. samples lost due to sample address not in expected range for domain: 0
Nr. lost kernel samples: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 682
Nr. user context kernel samples lost due to no app info available: 0
Nr. user samples lost due to no app info available: 0
Nr. backtraces skipped due to no file mapping: 0
Nr. hypervisor samples dropped due to address out-of-range: 0
Nr. samples lost reported by perf_events kernel: 0

非工作operf.log文件结果

Profiling started at Tue Oct  7 11:44:38 2014
Profiling stopped at Tue Oct  7 11:45:34 2014

-- OProfile/operf Statistics --
Nr. non-backtrace samples: 0
Nr. kernel samples: 0
Nr. user space samples: 0
Nr. samples lost due to sample address not in expected range for domain: 0
Nr. lost kernel samples: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 0
Nr. user context kernel samples lost due to no app info available: 0
Nr. user samples lost due to no app info available: 0
Nr. backtraces skipped due to no file mapping: 0
Nr. hypervisor samples dropped due to address out-of-range: 0
Nr. samples lost reported by perf_events kernel: 0

0 个答案:

没有答案