Hacker News new | ask | show | jobs
by pocksuppet 68 days ago
Why not just use ptrace?
1 comments

ptrace is atleast 2 context switches that will make it pretty slow
Yeah this wasn't something like "I want to debug a program" but rather I wanted to be able to track mmaping for later cleanup.

Fortunately libc doesn't mmap that much internally so I think I can get away alright with interposing lib's mmap call.