Notes:
%rip-relative is a great boon. It's terrific for position independent code (PIC), but it throws a monkey wrench into this technique.
Recently this trickiness has also been identified in other tracing tools – I don't think their solutions are as slick...