Re:Instant replay: Debugging C and C++ programs with rr
by DSingularity on Tuesday May 04, 2021 @06:11AM
(#27035796)
If you take a snapshot initially then all you need is the results of anything non-deterministic - ie anything which cannot be produced by program instructions themselves. For those you can pretty much get them all by logging the results of system calls. All that is left is things like RDTSC, RDRND, and thread interleaving of a multi threaded application.
[ Parent
| on HN ]
Re:Instant replay: Debugging C and C++ programs with rr
by sanxiyn on Tuesday May 04, 2021 @06:17AM
(#27035849)
This works in theory, but if your program has been running for a minute, going back a second by re-executing from the beginning will take a minute. rr snapshots every second so that going back takes similar time to going forward, rounded to seconds, adjusted for overhead.
Re:Instant replay: Debugging C and C++ programs with rr
by DSingularity on Tuesday May 04, 2021 @07:10AM
(#27036261)
True — modulo speed ups from materializing ND values from the log itself.