News for hackers. Stuff that matters.
Re:rr: lightweight recording and deterministic debugging by pm215 on Tuesday November 06, 2018 @06:42AM (#18390093)
The upstream issue with discussion about Arm support is https://github.com/mozilla/rr/issues/1373 -- the underlying problem is that rr's design assumes that if you execute N instructions you'll always deterministically end up in the same place. In architectures which implement atomics via a load-linked/store-conditional loop (including Alpha, Arm, MIPS, PPC,...) this isn't true, because differences at the OS level (eg timing of other interrupts or process scheduling) could cause an ll/sc loop to loop round more often. It's not clear how this could be addressed, because it's pretty deeply baked into rr's design.
Re:rr: lightweight recording and deterministic debugging by roca on Tuesday November 06, 2018 @09:07AM (#18391041)
CPU support for trapping on a failed LL/SC would suffice.
Re:rr: lightweight recording and deterministic debugging by pm215 on Tuesday November 06, 2018 @09:19AM (#18391159)
Do you have a sketch of how that would work? It seems plausible but I haven't thought through the details. Issue 1373 suggests a perf counter of failed-SC events and looking at "branches taken - failed_SC", which I'm definitely sceptical would be reliable.
Re:rr: lightweight recording and deterministic debugging by roca on Tuesday November 06, 2018 @09:27AM (#18391225)