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/LL "refs:" lines 17 perl -p -e 's/((I|D|LL) *refs:)[ 0-9,()+rdw]*$/\1/' | 18 19 # Remove numbers from I1/D1/LL/LLi/LLd "misses:" and "miss rates:" lines 20 perl -p -e 's/((I1|D1|LL|LLi|LLd) *(misses|miss rate):)[ 0-9,()+rdw%\.]*$/\1/' | 21 22 # Remove numbers from "Branches:", "Mispredicts:, and "Mispred rate:" lines 23 perl -p -e 's/((Branches|Mispredicts|Mispred rate):)[ 0-9,()+condi%\.]*$/\1/' | 24 25 # Remove CPUID warnings lines for P4s and other machines 26 sed "/warning: Pentium 4 with 12 KB micro-op instruction trace cache/d" | 27 sed "/Simulating a 16 KB I-cache with 32 B lines/d" | 28 sed "/warning: L3 cache found, using its data for the LL simulation./d" | 29 sed "/warning: L4 cache found, using its data for the LL simulation./d" | 30 sed "/Warning: Cannot auto-detect cache config, using defaults./d" | 31 sed "/Run with -v to see./d" | 32 sed "/warning: specified LL cache: line_size .*$/d" | 33 sed "/warning: simulated LL cache: line_size .*$/d" 34