njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # This filter should be applied to *every* stderr results. It removes Valgrind |
| 4 | # startup stuff and pid numbers. |
| 5 | |
fitzhardinge | 39de4b4 | 2003-10-31 07:12:21 +0000 | [diff] [blame] | 6 | # Remove ==pid== and --pid-- and ++pid++ and **pid** strings |
fitzhardinge | 60eec94 | 2004-01-05 01:02:10 +0000 | [diff] [blame] | 7 | sed "s/\(==\|--\|\+\+\|\*\*\)[0-9]\{1,5\}\1 //" | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 8 | |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 9 | # Remove "<name>, a <description> for x86-linux." line and the following |
nethercote | 7cc9c23 | 2004-01-21 15:08:04 +0000 | [diff] [blame] | 10 | # copyright notice line. Works for tool and core intro lines. |
njn | d04b7c6 | 2002-10-03 14:05:52 +0000 | [diff] [blame] | 11 | sed "/^.*, .* for x86-linux\./ , /./ d" | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 12 | |
| 13 | # Remove other introductory lines |
mueller | 3547d0b | 2004-01-03 15:02:59 +0000 | [diff] [blame] | 14 | sed "/Estimated CPU clock rate is [0-9]* MHz/d" | |
daywalker | 5b88111 | 2003-04-24 01:01:01 +0000 | [diff] [blame] | 15 | sed "/For more details, rerun with: -v/d" | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 16 | |
njn | cb13052 | 2003-05-05 09:09:08 +0000 | [diff] [blame] | 17 | # Anonymise line numbers in vg_replace_malloc.c |
mueller | 3547d0b | 2004-01-03 15:02:59 +0000 | [diff] [blame] | 18 | sed "s/vg_replace_malloc.c:[0-9]*/vg_replace_malloc.c:.../" | |
njn | cb13052 | 2003-05-05 09:09:08 +0000 | [diff] [blame] | 19 | |
njn | aca67c5 | 2003-09-04 21:57:45 +0000 | [diff] [blame] | 20 | # Anonymise vg_intercept lines |
mueller | 3547d0b | 2004-01-03 15:02:59 +0000 | [diff] [blame] | 21 | sed "s/vg_intercept.c:[0-9]*/vg_intercept.c:.../" | |
njn | aca67c5 | 2003-09-04 21:57:45 +0000 | [diff] [blame] | 22 | |
njn | 9c1f63c | 2003-10-18 14:16:01 +0000 | [diff] [blame] | 23 | # Anonymise vg_libpthread lines |
mueller | 3547d0b | 2004-01-03 15:02:59 +0000 | [diff] [blame] | 24 | sed "s/vg_libpthread.c:[0-9]*/vg_libpthread.c:.../" | |
njn | 9c1f63c | 2003-10-18 14:16:01 +0000 | [diff] [blame] | 25 | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 26 | # Hide suppressed error counts |
mueller | 3547d0b | 2004-01-03 15:02:59 +0000 | [diff] [blame] | 27 | sed "s/^\(ERROR SUMMARY[^(]*(suppressed: \)[0-9]*\( from \)[0-9]*)$/\10\20)/" | |
fitzhardinge | 98abfc7 | 2003-12-16 02:05:15 +0000 | [diff] [blame] | 28 | |
| 29 | |
daywalker | 5b88111 | 2003-04-24 01:01:01 +0000 | [diff] [blame] | 30 | # Reduce some libc incompatibility |
| 31 | sed "s/ __getsockname / getsockname /" | |
| 32 | sed "s/ __sigaction / sigaction /" | |
| 33 | sed "s/ __GI___/ __/" |