malloc probes for Systemtap

Alexandre Oliva aoliva@redhat.com
Tue Oct 2 06:07:00 GMT 2012


On Sep  5, 2012, Andreas Jaeger <aj@suse.com> wrote:

> On Tuesday, September 04, 2012 20:39:46 Alexandre Oliva wrote:
>> I was asked to introduce probes in malloc to aid in debugging cases in
>> which our memory allocation code performs poorly.
>> 
>> I've grouped the probes in separate patches, in which the probes are
>> logically connected.  I'd appreciate feedback on the soundness of the
>> probe set: did I miss anything in these groups that is worth probing?
>> is any of the probes uselessly redundant?  are they desirable at all?
>> 
>> Are they ok for master?  Do the docs look reasonable, description and
>> formatting-wise?  (The only other probe docs I found in glibc were in
>> elf/rtld-debugger-interface.txt)
>> 
>> The version of the patchset I pushed to lxoliva/malloc-probes-bz742038
>> depends on Siddhesh's patch that introduces get_another_arena. 
>> Although I've just suggested changes to it, I decided to post the
>> patchset as it is, since most of it applies cleanly anyway, and
>> regardless of adjustments needed for Siddhesh's patch, I suspect we
>> might go through more than one round of review before my patchset can
>> go in anyway.

> Roland is the systemtap expert and I'd like him to review this

Roland, you got any comments on this?

Here's the updated patchset.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-malloc-probes.patch
Type: text/x-diff
Size: 3593 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121002/1370b294/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-mallopt-detailed-probes.patch
Type: text/x-diff
Size: 7116 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121002/1370b294/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-malloc-probe-arena-changes.patch
Type: text/x-diff
Size: 6144 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121002/1370b294/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04-malloc-probe-retries.patch
Type: text/x-diff
Size: 4227 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121002/1370b294/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 05-malloc-probe-get-another-arena.patch
Type: text/x-diff
Size: 1957 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121002/1370b294/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06-malloc-probe-heaps.patch
Type: text/x-diff
Size: 4646 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121002/1370b294/attachment-0005.bin>
-------------- next part --------------


-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


More information about the Libc-alpha mailing list