[lttng-dev] [PATCH lttng-ust] Add trace support for calloc and realloc.

Alexander Monakov amonakov at ispras.ru
Thu Aug 1 13:19:56 EDT 2013



On Thu, 1 Aug 2013, Alexander Monakov wrote:

> Okay, one more hack :)
> 
> Recurse *once* by calling dlsym inside your calloc, and terminate recursion by
> obtaining memory from mmap.

Correction: since there's no guarantee that the very first calloc invocation
will happen from inside dlsym, you have to recurse twice, not once, to be sure
that there are two dlsyms on the stack.



More information about the lttng-dev mailing list