Add new files resulting from merging in the 2.4.0 line.  Many of these
seem to be simply duplication of the x86 instruction set tests into
the addrcheck and helgrind trees.  I'm not sure what this duplication
achieves.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/filter_libc b/tests/filter_libc
new file mode 100755
index 0000000..bcb8309
--- /dev/null
+++ b/tests/filter_libc
@@ -0,0 +1,26 @@
+#! /usr/bin/perl -w
+
+use strict;
+
+my @libc_symbols = qw(__libc_start_main accept execve fcntl
+                      getsockname poll readv recvmsg
+                      socket socketpair syscall writev);
+
+my $libc_symbols = join("|", @libc_symbols);
+
+while (<>)
+{
+    s/ __getsockname / getsockname /;
+    s/ __sigaction / sigaction /;
+    s/ __GI___/ __/;
+    s/ __([a-z]*)_nocancel / $1 /;
+
+    s/\(in \/.*libc.*\)$/(in \/...libc...)/;
+    s/\(within \/.*libc.*\)$/(within \/...libc...)/;
+
+    s/($libc_symbols) \(.+\.[cS]:\d+\)$/$1 (in \/...libc...)/;
+
+    print;
+}
+
+exit 0;