Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hohod
· 10y ago · 0 comments
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...
Comments
[–]
chamibuddhika
10y ago
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).