]> git.ipfire.org Git - thirdparty/valgrind.git/commit
massif: match --ignore-fn with the first IP that has a fnname
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 23 Sep 2017 11:26:12 +0000 (13:26 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 23 Sep 2017 11:30:42 +0000 (13:30 +0200)
commitd1232dd32a94f7b3dabd66e8cac3c0cf12d014f3
treecf031624a552404a7ce9c19d8bf2989757b91912
parentf053756e2880dbb7291aac086aa48e1fd3b6f812
massif: match --ignore-fn with the first IP that has a fnname

Currently, --ignore-fn is only matched with the top IP entries that
have a fnname. With this change, we first search for the first IP that
has a fnname.
This e.g. allows to ignore the allocation for a stacktrace such as:
   0x1 0x2 0x3 fn_to_ignore otherfn

This is then used in massif c++ tests new-cpp and overloaded-new to ignore
the c++ libstdc++ allocation similar to:
==10754== 72,704 bytes in 1 blocks are still reachable in loss record 10 of 10
==10754==    at 0x4C2BBCD: malloc (vg_replace_malloc.c:299)
==10754==    by 0x4EC39BF: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.22)
==10754==    by 0x400F8A9: call_init.part.0 (dl-init.c:72)
==10754==    by 0x400F9BA: call_init (dl-init.c:30)
==10754==    by 0x400F9BA: _dl_init (dl-init.c:120)
==10754==    by 0x4000C59: ??? (in /lib/x86_64-linux-gnu/ld-2.24.so)
massif/ms_main.c
massif/tests/new-cpp.post.exp
massif/tests/new-cpp.vgtest
massif/tests/overloaded-new.post.exp
massif/tests/overloaded-new.vgtest