]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add some filtering to massif C++ tests with GCC on FreeBSD
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 31 May 2022 18:36:18 +0000 (20:36 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 31 May 2022 18:36:18 +0000 (20:36 +0200)
I should perhaps just delete these expected. The testcases don't
work well with the stripped libstc++ without debuginfo on FreeBSD.
That means that the --ignore-fn= options don't work to remove
exception handling and iostream allocations and just leave the
tesatcase allocations.

massif/tests/new-cpp.post.exp-freebsd
massif/tests/new-cpp.post.exp-x86-freebsd-gcc
massif/tests/new-cpp.vgtest
massif/tests/overloaded-new.post.exp-freebsd
massif/tests/overloaded-new.post.exp-x86-freebsd-gcc
massif/tests/overloaded-new.vgtest

index 6367d9179937caaef6a2cefc5119103897fe9997..a29a80c37ba008ecff0f0d2677d3b7f9e799019b 100644 (file)
@@ -1,6 +1,6 @@
 --------------------------------------------------------------------------------
 Command:            ./new-cpp
-Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0 --ignore-fn=call_init
 ms_print arguments: massif.out
 --------------------------------------------------------------------------------
 
@@ -43,7 +43,7 @@ Number of snapshots: 12
   5         84,744           84,744           84,704            40            0
   6         84,744           84,744           84,704            40            0
 99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
-->85.79% (72,704B) 0x........: ??? (in /usr/local/lib/gcc10/libstdc++.so.6.0.28)
+->85.79% (72,704B) 0x........: ??? (in /usr/local/lib/gcc/libstdc++.so.6.0.28)
 | ->85.79% (72,704B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |   ->85.79% (72,704B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |     ->85.79% (72,704B) 0x........: ??? (in /libexec/ld-elf.so.1)
index 558aa94d1cca65e6e92e6425752de3713945805a..b44673c201a47641423783e71b59a5d760af9efa 100644 (file)
@@ -1,6 +1,6 @@
 --------------------------------------------------------------------------------
 Command:            ./new-cpp
-Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0 --ignore-fn=call_init
 ms_print arguments: massif.out
 --------------------------------------------------------------------------------
 
@@ -43,7 +43,7 @@ Number of snapshots: 12
   5         30,984           30,984           30,944            40            0
   6         30,984           30,984           30,944            40            0
 99.87% (30,944B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
-->61.14% (18,944B) 0x........: ??? (in /usr/local/lib/gcc9/libstdc++.so.6.0.28)
+->61.14% (18,944B) 0x........: ??? (in /usr/local/lib/gcc/libstdc++.so.6.0.28)
 | ->61.14% (18,944B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |   ->61.14% (18,944B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |     ->61.14% (18,944B) 0x........: ??? (in /libexec/ld-elf.so.1)
index ebcef897a0adf09c3195a1767e55aaa3e247af96..18b2d441f5a857623c050351bfc1b34c7af45962 100644 (file)
@@ -3,5 +3,5 @@ vgopts: --stacks=no --time-unit=B --massif-out-file=massif.out
 vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook
 vgopts: --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
 vgopts: --ignore-fn=call_init
-post: perl ../../massif/ms_print massif.out | ../../tests/filter_addresses
+post: perl ../../massif/ms_print massif.out | sed 's/gcc[0-9]*/gcc/' | ../../tests/filter_addresses
 cleanup: rm massif.out
index ac5fb2c2e9a812a74934fc75eb78bec8c717c871..5ea3666c08a9aec7b397586aed007ddf8aa9cbd0 100644 (file)
@@ -1,6 +1,6 @@
 --------------------------------------------------------------------------------
 Command:            ./overloaded-new
-Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0 --ignore-fn=call_init
 ms_print arguments: massif.out
 --------------------------------------------------------------------------------
 
@@ -43,7 +43,7 @@ Number of snapshots: 12
   5         84,744           84,744           84,704            40            0
   6         84,744           84,744           84,704            40            0
 99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
-->85.79% (72,704B) 0x........: ??? (in /usr/local/lib/gcc10/libstdc++.so.6.0.28)
+->85.79% (72,704B) 0x........: ??? (in /usr/local/lib/gcc/libstdc++.so.6.0.28)
 | ->85.79% (72,704B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |   ->85.79% (72,704B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |     ->85.79% (72,704B) 0x........: ??? (in /libexec/ld-elf.so.1)
index 2d7fc92541c916f12e6c807d09b2067e75a58954..5d99373d6917e616b2eca3934b2253d76815e110 100644 (file)
@@ -1,6 +1,6 @@
 --------------------------------------------------------------------------------
 Command:            ./overloaded-new
-Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
+Massif arguments:   --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0 --ignore-fn=call_init
 ms_print arguments: massif.out
 --------------------------------------------------------------------------------
 
@@ -43,7 +43,7 @@ Number of snapshots: 12
   5         30,984           30,984           30,944            40            0
   6         30,984           30,984           30,944            40            0
 99.87% (30,944B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
-->61.14% (18,944B) 0x........: ??? (in /usr/local/lib/gcc9/libstdc++.so.6.0.28)
+->61.14% (18,944B) 0x........: ??? (in /usr/local/lib/gcc/libstdc++.so.6.0.28)
 | ->61.14% (18,944B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |   ->61.14% (18,944B) 0x........: ??? (in /libexec/ld-elf.so.1)
 |     ->61.14% (18,944B) 0x........: ??? (in /libexec/ld-elf.so.1)
index fc95acc2f3fa4c1f79503e6f22373ddda6456430..0adb438ec8799fb17dd213b0274b8ac242f0ad58 100644 (file)
@@ -3,5 +3,5 @@ vgopts: --stacks=no --time-unit=B --massif-out-file=massif.out
 vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook
 vgopts: --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc --ignore-fn=call_init.part.0
 vgopts: --ignore-fn=call_init
-post: perl ../../massif/ms_print massif.out | ../../tests/filter_addresses
+post: perl ../../massif/ms_print massif.out | sed 's/gcc[0-9]*/gcc/' | ../../tests/filter_addresses
 cleanup: rm massif.out