【发布时间】:2013-11-14 19:07:45
【问题描述】:
我使用的系统是ubuntu-12.10-desktop-amd64
我通过安装 perf
apt-get install linux-tools linux-tools-common linux-tools-3.5.0-40
当我使用perf list 时,它会按预期列出所有事件。但是当我使用perf stat时,结果似乎异常
perf stat ls
结果是:
Performance counter stats for 'ls':
3.988508 task-clock # 0.678 CPUs utilized
172 context-switches # 0.043 M/sec
0 CPU-migrations # 0.000 K/sec
276 page-faults # 0.069 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
0.005883014 seconds time elapsed
为什么不支持这些事件?启用这些事件需要任何操作吗?
【问题讨论】:
-
我发现在原始 ubuntu 系统中,性能很好。但是在使用ubuntu和xen的时候,就会出现上面的问题。我从源代码编译 xen。编译xen时需要什么参数吗??
标签: ubuntu virtualization xen perf