Bringing Record and Replay debugging everywhere on Linux
Published on: 2025-05-19 16:49:09
21 March 2025
Bringing Record and Replay everywhere
TL; DR
I've modified the awesome rr debugger so that it can run without needing access to CPU Hardware Performance counters.
This allows rr to be used in many more environments like cloud VMs and containers where access to CPU HW performance counters is usually disabled. Upstream rr requires access to CPU HW performance counters to function, so this is a new feature and opens many additional possibilities to debug your software with rr .
I call this variant, Software Counters mode rr . Record and Replay systems like rr deserve to be able to run everywhere and this is my attempt at making this possible !
Running rr record/replay without access to CPU HW performance counters is accomplished using lightweight dynamic (and static) instrumentation. The Software Counters mode rr wiki has more details in case you're curious about some more of the internals.
To build, install and run Software Counters mode rr please visit https://githu
... Read full article.