Unblock use of rr on SaaS runners
Proposal
Unblock using rr (from rr-project.org) on SaaS runners to record program execution traces (e.g. for download and replaying on an engineer's PC, to debug failures).
Currently, rr record <program> fails with this error (job):
[FATAL ./src/PerfCounters.cc:306:start_counter()] Unable to open performance counter with 'perf_event_open'; are hardware perf events available?
In another job I installed perf and ran some commands to check the available counters. I ran the same commands in the same image on my PC and it worked - I assume the issue is that CI runs in a VM. rr's Building And Installing guide includes instructions for enabling performance counters for various VM hosts.
In those jobs I am not running rr directly. I am using a custom binary, go-test-rr, to invoke go test in such a way that it uses rr to execute the test program.