我无法在aws上运行perf(Ubuntu 14.04.4)。似乎没有支持任何硬件事件。知道发生了什么事吗?我正在使用一个专门的实例。
以下是一个例子:
$ perf stat sleep 4
Performance counter stats for 'sleep 4':
0.388772 task-clock (msec) # 0.000 CPUs utilized
1 context-switches # 0.003 M/sec
0 cpu-migrations # 0.000 K/sec
179 page-faults # 0.460 M/sec
<not supported> cycles
<not supported> stalled-cycles-frontend
<not supported> stalled-cycles-backend
<not supported> instructions
<not supported> branches
<not supported> branch-misses
4.000773655 seconds time elapsed
Perf版本:
$ perf version
perf version 3.13.11-ckt39
内核版本:
$ uname -r
3.13.0-92-generic