I'm running the following command line using perf
$ perf stat ./program
[...]
<not supported> instructions
<not supported> branches
<not supported> branch-misses
<not supported> cycles
[...]
$ cat /proc/sys/kernel/perf_event_paranoid
3
How do I enable these events? Mainly instructions and cycles? I already changed the value to -1 in the /proc/sys/kernel/perf_event_paranoid file, but it keeps the events off, when I reboot, it goes back to the original value which is 3.