问题描述
新有了一台机子,之前perf用的挺好的,新机子上出现了根本没有Hardware event list的情况。 如下:
xxx@ubuntu:~$ perf list hw
List of pre-defined events (to be used in -e):
xxx@ubuntu:~$ sudo perf stat -a sleep 5
Performance counter stats for 'system wide':
20007.670689 cpu-clock (msec) # 4.000 CPUs utilized
612 context-switches # 0.031 K/sec
46 cpu-migrations # 0.002 K/sec
60 page-faults # 0.003 K/sec
<not supported> cycles
<not supported> instructions
<not supported> branches
<not supported> branch-misses
5.