Ended up wanting to look at malloc calls, how much was requested,
where the memory was located, and where in the program the request
was made. This was on S9,...
Ended up wanting to look at malloc calls, how much was requested,
where the memory was located, and where in the program the request
was made. This was on S9, so no dtrace, so the obvious thing to do
was to write an interpose library and use that. The code is pretty
simple:#include <stdlib.h>#include <stdio.h>#include
<dlfcn.h>#include <ucontext.h>void \* malloc(size_t
size){ static void\* (\*func)(size_t)=0; void\* ret; if...
Ended up wanting to look at malloc calls, how much was requested,
where the memory was located, and where in the program the request
was made. This was on S9, so no dtrace, so the obvious thing to...