~bkerensa/ubuntu/raring/valgrind/merge-from-deb

« back to all changes in this revision

Viewing changes to callgrind/tests/filter_stderr

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-06-26 00:17:17 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20060626001717-qi51nzty57cb12q6
Tags: upstream-3.2.0
Import upstream version 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
sed "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
sed "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"