upvote
ptrace is atleast 2 context switches that will make it pretty slow
reply
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.

reply