私が使用するシステムは 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
これらのイベントがサポートされていないのはなぜですか? これらのイベントを有効にするために必要な操作はありますか?