perf.data file has no samples
问题 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. 回答1: This thread has some useful information: http://www.spinics.net/lists/linux-perf-users/msg01436.html It seems that if you are running in a VM that does not expose the PMU to the guest, the default collection ( -e cycles )