4 ms·
Hah, I've been looking into something amusingly similar to track mmap syscalls for a process :)
by foota 6mo ago
Hah, I've been looking into something amusingly similar to track mmap syscalls for a process :)
- pocksuppet 6mo agoWhy not just use ptrace?
- amitlimaye 6mo agoptrace is atleast 2 context switches that will make it pretty slow
- foota 6mo agoYeah 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.