blob: 5a893a29790435bedf7b3c292c96644fce801958 [file] [log] [blame]
sewardj8eb8bab2015-07-21 14:44:28 +00001#!/bin/sh
2
3# Filters are not run for post-test check commands.
4# Filter everything here.
5
6echo "---Status---"
7echo "::status" | /usr/bin/mdb vgcore.* | \
8perl -p -e 's/\(.*\) from \S*$/from .../' | \
9perl -0 -p -e 's/^file: .+?^(initial argv:)/$1/ms' | \
10perl -p -e 's/addr=[0-9A-Fa-f]+/addr=......../g'
11
12echo "\n---Stacks---"
13echo "::stacks ! perl -p -e 's/^(\S+)\+.*/\$1/g'" | /usr/bin/mdb vgcore.* | \
14perl -p -e 's/^(THREAD)\s+(STATE)\s+(SOBJ)\s+(COUNT)\s*$/$1 $2 $3 $4\n/' | \
15perl -p -e 's/^(\d+)\s+(UNPARKED)\s+(\S+)\s+(\d+)/$1 $2 $3 $4/g' | \
16perl -p -e 's/^\s*libc.*.so.1/libc.so.1/g' | \
17perl -p -e 's/^\s*(coredump_many_threads)/$1/g' | \
18perl -p -e 's/\+0x[0-9A-Fa-f]+//g'