News for hackers. Stuff that matters.
Re:TraceTool: Open source C++ execution trace framework by Joky on Saturday September 17, 2016 @12:03PM (#12521039)
Xray is currently being implemented in LLVM: it will allow exactly this. The code is instrumented at compile-time by leaving at the beginning of the function just the minimum amount of extra space (nop) so that at runtime a selected list of function can be instrumented arbitrarily. It means that even for a long-lived process, you can turn on/off various instrumentations while still having ~0 cost when instrumentation is off.

There are no comments on this comment yet.