~ operf QSoas Unexpected error running operf: Permission denied
Looking further using
strace
, I could see that what was not working was the first call to perf_event_open. It took me quite a long time to understand why it stopped working and how to get it working again, so here's for those of you who googled the error and couldn't find any answer (including me, who will probably have forgotten the anwser in a couple of months). The reason behing the change is that, for security reason, non-privileged users do not have the necessary privileges since Debian kernel
4.1.3-1
; here's the relevant bit from the changelog:* security: Apply and enable GRKERNSEC_PERF_HARDEN feature from Grsecurity, disabling use of perf_event_open() by unprivileged users by default (sysctl: kernel.perf_event_paranoid)
The solution is simple, just run as root:
~ sysctl kernel.perf_event_paranoid=1
(the default value seems to be 3, for now). Hope it helps !
1 comment:
TUrns out it's actually myself that I've helped, I knew I would forget !
Post a Comment