The attached patch adds support for calloc and realloc to the lttng-ust-libc-wrapper library. The implementation for calloc is slightly tricky, as dlsym calls calloc internally, so the library needs to provide a 'dummy' implementation for calloc to avoid an endless recursion. Testing has shown however that the object(s) allocated at that point are small, so a dummy static 'heap' suffices as a workaround. -- Stefan Seefeld CodeSourcery / Mentor Graphics http://www.mentor.com/embedded-software/