【发布时间】:2014-02-04 23:31:53
【问题描述】:
我在 ubuntu 11.10 上使用 perf 3.0.4。它的记录命令运行良好,并显示在收集的终端 256 样本上。但是当我使用 perf report 时,它给了我以下错误:
perf.data file has no samples
我搜索了很多解决方案,但还没有成功。
【问题讨论】:
-
请给我们您用来记录事件的命令。
-
你的问题解决了吗?
-
只是为了给出错误可能发生的另一个原因:它可能是because events requested are not enabled in kernel。例如,如果您记录
sched:事件之一,则必须设置sudo sysctl kernel.sched_schedstats=1。