]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merged r8977 (callgrind filter_stderr portability tweak) from the DARWIN
authorNicholas Nethercote <njn@valgrind.org>
Mon, 18 May 2009 05:13:22 +0000 (05:13 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 18 May 2009 05:13:22 +0000 (05:13 +0000)
branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9892

callgrind/tests/filter_stderr

index 7b69674f50c758f13538b3ae4def6c29ad7f62f9..f7115f4df6e8abd55722898ee8c3e0ac59e21c14 100755 (executable)
@@ -14,10 +14,10 @@ sed "/^For interactive control,.*$/d" |
 sed "s/^\(Collected *:\)[ 0-9]*$/\1/" |
 
 # Remove numbers from I/D/L2 "refs:" lines
-sed "s/\(\(I\|D\|L2\) *refs:\)[ 0-9,()+rdw]*$/\1/"  |
+perl -p -e 's/((I|D|L2) *refs:)[ 0-9,()+rdw]*$/\1/'  |
 
 # Remove numbers from I1/D1/L2/L2i/L2d "misses:" and "miss rates:" lines
-sed "s/\(\(I1\|D1\|L2\|L2i\|L2d\) *\(misses\|miss rate\):\)[ 0-9,()+rdw%\.]*$/\1/" |
+perl -p -e 's/((I1|D1|L2|L2i|L2d) *(misses|miss rate):)[ 0-9,()+rdw%\.]*$/\1/' |
 
 # Remove CPUID warnings lines for P4s and other machines
 sed "/warning: Pentium 4 with 12 KB micro-op instruction trace cache/d" |