njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | dir=`dirname $0` |
| 4 | |
njn25 | cac76cb | 2002-09-23 11:21:57 +0000 | [diff] [blame] | 5 | $dir/../../tests/filter_stderr_basic | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 6 | |
njn | 6a3009b | 2005-03-20 00:20:06 +0000 | [diff] [blame] | 7 | # Remove "Cachegrind, ..." line and the following copyright line. |
njn | cab64bc | 2009-08-12 00:14:44 +0000 | [diff] [blame] | 8 | sed "/^Cachegrind, a cache and branch-prediction profiler/ , /./ d" | |
njn | 6a3009b | 2005-03-20 00:20:06 +0000 | [diff] [blame] | 9 | |
njn | 2d853a1 | 2010-10-06 22:46:31 +0000 | [diff] [blame] | 10 | # Remove numbers from I/D/LL "refs:" lines |
| 11 | perl -p -e 's/((I|D|LL) *refs:)[ 0-9,()+rdw]*$/\1/' | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 12 | |
njn | 2d853a1 | 2010-10-06 22:46:31 +0000 | [diff] [blame] | 13 | # Remove numbers from I1/D1/LL/LLi/LLd "misses:" and "miss rates:" lines |
| 14 | perl -p -e 's/((I1|D1|LL|LLi|LLd) *(misses|miss rate):)[ 0-9,()+rdw%\.]*$/\1/' | |
sewardj | d541229 | 2003-05-05 16:18:51 +0000 | [diff] [blame] | 15 | |
njn | 4fe4943 | 2005-08-16 02:30:24 +0000 | [diff] [blame] | 16 | # Remove CPUID warnings lines for P4s and other machines |
sewardj | 96f7724 | 2005-10-20 00:30:30 +0000 | [diff] [blame] | 17 | sed "/warning: Pentium 4 with 12 KB micro-op instruction trace cache/d" | |
| 18 | sed "/Simulating a 16 KB I-cache with 32 B lines/d" | |
sewardj | ef53b80 | 2010-10-07 13:33:28 +0000 | [diff] [blame] | 19 | sed "/warning: L3 cache found, using its data for the LL simulation./d" | |
cborntra | 5d97871 | 2012-11-07 07:57:01 +0000 | [diff] [blame] | 20 | sed "/warning: L4 cache found, using its data for the LL simulation./d" | |
florian | 7862701 | 2012-10-07 19:47:04 +0000 | [diff] [blame] | 21 | sed "/Warning: Cannot auto-detect cache config, using defaults./d" | |
| 22 | sed "/Run with -v to see./d" | |
weidendo | 9679518 | 2011-06-27 17:26:19 +0000 | [diff] [blame] | 23 | sed "/warning: pretending that LL cache has associativity .*$/d" |