]> sourceware.org Git - valgrind.git/commitdiff
filter_xml: Filter out '@*' from <fn> symbol names
authorMark Wielaard <mark@klomp.org>
Tue, 12 Oct 2021 18:01:45 +0000 (20:01 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 12 Oct 2021 18:01:52 +0000 (20:01 +0200)
With glibc 2.34 we would start seeing some function names ending in
'@*' this was already filtered out using drd/tests/filter_stderr.in
but not when using the drd xml tests. This would make
drd/tests/thread_name_xml and drd/tests/bar_bad_xml fail.

Filter this out in the memcheck/tests/filter_xml script, which is
also used by the drd test filters.

Tested against glibc 2.34, 2.33 and 2.17 on x86_64.

memcheck/tests/filter_xml

index 6de4e930b5ebfce46ad557be0918f59a7c91fc6c..e8c0b75cf5084a320a2d7d94cfd2804cb8abe510 100755 (executable)
@@ -11,6 +11,8 @@ sed "s/<obj>.*<\/obj>/<obj>...<\/obj>/" |
 sed "s/<line>.*<\/line>/<line>...<\/line>/" |
 sed "s/<dir>.*<\/dir>/<dir>...<\/dir>/" |
 sed "s/<count>.*<\/count>/<count>...<\/count>/" |
+# Filter out @* version symbol function names
+sed "s/<fn>\(.*\)\@\*<\/fn>/<fn>\1<\/fn>/" |
 sed "s/of size [48]</of size N</" |
 perl    -p -e "s/(m_replacemalloc\/)?vg_replace_malloc.c/vg_replace_malloc.c/" |
 perl -0 -p -e "s/<suppcounts>.*<\/suppcounts>/<suppcounts>...<\/suppcounts>/s" |
This page took 0.034275 seconds and 5 git commands to generate.