perf.data 文件没有样本 [英] perf.data file has no samples

查看:134
本文介绍了perf.data 文件没有样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ubuntu 11.10 上使用 perf 3.0.4.它的记录命令运行良好并显示在终端上收集到的 256 个样本.但是当我使用 perf report 时,它给了我以下错误:

I am using perf 3.0.4 on ubuntu 11.10. Its record command works well and displays on terminal 256 samples collected. But when I make use of perf report , it gives me the following error:

perf.data file has no samples

我搜索了很多解决方案,但还没有成功.

I searched a lot for the solution but no success yet.

推荐答案

这个帖子有一些有用的信息:http://www.spinics.net/lists/linux-perf-users/msg01436.html

This thread has some useful information: http://www.spinics.net/lists/linux-perf-users/msg01436.html

看来,如果您在不向来宾公开 PMU 的 VM 中运行,则默认集合 (-e 循环) 将不起作用.尝试使用 -e cpu-clock 运行.根据该线程,OP 在运行 Ubuntu 10.04 的真实主机中也存在同样的问题,因此它也可能为您解决...

It seems that if you are running in a VM that does not expose the PMU to the guest, the default collection (-e cycles) won't work. Try running with -e cpu-clock. According to that thread, the OP had the same problem also in a real host running Ubuntu 10.04, so it might solve it for you too...

这篇关于perf.data 文件没有样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆