Hah, I've been looking into something amusingly similar to track mmap syscalls for a process :)
Why not just use ptrace?