diff options
Diffstat (limited to 'src/agent/hook.zig')
| -rw-r--r-- | src/agent/hook.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/agent/hook.zig b/src/agent/hook.zig index 57a374c..fa44cc4 100644 --- a/src/agent/hook.zig +++ b/src/agent/hook.zig @@ -11,6 +11,10 @@ //! handler swaps the return address on the stack for `returned`, which emits //! the event and jumps to the real one. //! +//! shortcut: SIGTRAP is forced; a target that calls a hooked function with +//! SIGTRAP blocked is killed by the kernel. Under --syscalls the agent keeps +//! the target's masks clear of it; without, nothing does. +//! //! shortcut: a signal per call, about a microsecond. For hooks on hot //! functions, copy the prologue to a trampoline and patch a jump in (this //! needs an x86-64 instruction-length decoder, to move whole instructions and |
