Azure DevOps pipeline build does not have permission to collect perf stats

0

I am using an Azure DevOps pipeline build to run a subprocess that is being monitored by perf. When I run the script that launches this subprocess on the VM that I'm using, it works without a problem. However, when I run it as a pipeline build I get the error saying 'No permission to enable cycles event'. and 'You may not have permission to collect stats.' I have tried debugging and I know that the value of perf_event_paranoid in both the /proc/sys/kernel/perf_event_paranoid and /etc/sysctl.conf are -1. enter image description here

Tanner Lewis

Posted 2019-07-01T17:30:09.740

Reputation: 1

No answers