title: Hook mmap/munmap without LD_PRELOAD
body: <p>I would like to hook to mmap and munmap, typically called inside libc in memory allocator functions. One way to do is LD_PRELOAD -- is there anyway to do this programmatically ? Note that I want to hook to the mmap/munmap inside libc, not one from my application.</p>