I'd like to stop using tracefd, but since we need to maintain compatability with older tooling, lets at least make it more ergonomic than adding an instrument(s) for it.
This comes from libsysprof, but the goal here is to remove that library after getting this one into shape. So C&P is fine for now.