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

Stefan Seefeld stefan_seefeld at mentor.com
Mon Aug 5 11:29:31 EDT 2013


On 08/02/2013 09:18 PM, Mathieu Desnoyers wrote:

[...]

> Then, I recommend porting the code from memleak-finder.c to UST
> liblttng-ust-libc-wrapper. The approach I used in memleak-finder.c seems
> to work quite well, and is clearly more complete that what we find in
> liblttng-ust-libc-wrapper currently.

...and here is a revised patch to add calloc and realloc
instrumentation, using the same technique as memleak-finder.

I've ran the patch through the checkpatch.pl script, and made some minor
adjustments to other code to fix coding style errors.

Regards,
    Stefan

-- 
Stefan Seefeld
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 3830 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130805/ae0403ed/attachment.bin>


More information about the lttng-dev mailing list