Re:Hotpatching a C Function on x86
by hohod on Friday April 01, 2016 @05:35AM
(#11403706)
DTrace has been doing this kind of things, in a safe and usable-in-production way, for years (and the code, while not trivial, is usually pretty cool to read): https://github.com/joyent/illumos-joyent/blob/master/usr/src...
[ Parent
| on HN ]
Re:Hotpatching a C Function on x86
by chamibuddhika on Friday April 01, 2016 @09:28PM
(#11409787)
For userspace probes DTrace uses INT3 AFAIK. Taking a signal each time a probe gets hit can be high overhead for certain usages though (like low overhead profiling as opposed to intrusive debugging).