解决方法

It seems kernel didn’t let me access to performance events because of security reasons. You have to set that.
(由于安全原因,似乎内核不允许访问性能事件,必须对它进行设置)

1
sudo sh -c 'echo -1 >/proc/sys/kernel/perf_event_paranoid'