]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/callgrind/tests/filter_stderr
1a58540d4546cd882a2cea13aeb0d7d4058ff984
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / callgrind / tests / filter_stderr
1 #! /bin/sh
2
3 dir=`dirname $0`
4
5 $dir/../../tests/filter_stderr_basic                |
6
7 # Remove "Callgrind, ..." line and the following copyright line.
8 sed "/^Callgrind, a call-graph generating cache profiler/ , /./ d" |
9
10 # Remove pointer to callgrind_control
11 sed "/^For interactive control,.*$/d" |
12
13 # Remove numbers from "Collected" line
14 sed "s/^\(Collected *:\)[ 0-9]*$/\1/" |
15
16 # Remove numbers from I/D/L2 "refs:" lines
17 perl -p -e 's/((I|D|L2) *refs:)[ 0-9,()+rdw]*$/\1/'  |
18
19 # Remove numbers from I1/D1/L2/L2i/L2d "misses:" and "miss rates:" lines
20 perl -p -e 's/((I1|D1|L2|L2i|L2d) *(misses|miss rate):)[ 0-9,()+rdw%\.]*$/\1/' |
21
22 # Remove CPUID warnings lines for P4s and other machines
23 sed "/warning: Pentium 4 with 12 KB micro-op instruction trace cache/d" |
24 sed "/Simulating a 16 KB I-cache with 32 B lines/d"   |
25 sed "/warning: L3 cache detected but ignored/d" |
26 sed "/Warning: Cannot auto-detect cache config on PPC.., using one or more defaults/d"