3 # pmlogger with different logging rates
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
15 trap "rm -f $tmp.*; exit" 0 1 2 3 15
17 # real QA test starts here
20 # Logs are built for 70 samples (-s70) (see Makefile)
21 # The sample metric rates are 100msec, 500msec, 900msec
23 # This means that (x + x/5 + x/9 = 70) for integral x.
27 # So, x = 54, x/5 = 10, x/9 = 6 (54 + 10 + 6 = 70)
29 # Note below that n[i] is not incremented on its 1st occurrence
30 # => expect values of 53, 9, 5
32 for arch
in tmparch
/bar tmparch
/mv-bar tmparch
/noti-bar
39 /^[0-9]/ { print $3,$NF }' \
52 printf "%d msec requested: ",i
57 if (i == 100 && 51 <= n[i] && n[i] <= 54)
58 printf "no. of samples within range, "
59 else if (i == 500 && 9 <= n[i] && n[i] <= 11)
60 printf "no. of samples within range, "
61 else if (i == 900 && 4 <= n[i] && n[i] <= 6)
62 printf "no. of samples within range, "
64 printf "no. of samples (%d) unexpected, ",n[i]
65 if (0.9 * i <= ave && ave <= 1.1 * i)
66 printf "avg within 10%% of requested delay\n"
68 printf "avg (%.2f msec) outside 10%% of requested delay\n",1000*t[i]/n[i]
71 | LC_COLLATE
=POSIX
sort