Restartable sequences in glibc
Restartable sequences in glibc
Posted Feb 1, 2022 6:53 UTC (Tue) by roc (subscriber, #30627)In reply to: Restartable sequences in glibc by mjw
Parent article: Restartable sequences in glibc
rr generally doesn't instrument code. Also, we run code on a single core and control scheduling. It is therefore pretty easy to for us to emulate rseq completely. We don't pass the syscall through, instead when rr performs a context switch or signal delivery, we emulate an rsync abort ourselves if necessary.
Posted Feb 1, 2022 6:54 UTC (Tue)
by roc (subscriber, #30627)
[Link]
Restartable sequences in glibc
Oh and rr also pins tracees to a single core (usually) so there are never any CPU migrations.
