#!/bin/csh -f
#
# superexall - do all the standard exall's
#
# usage
#  superexall dir...
# where dir... is a list of directories 
# to do it in.
#

if ($#argv < 1) then
	   echo usage: superexall dir...
	   exit
endif

exall 3 total $*
exall 5 tsync $*
exall 8 tread $*
exall 9 wait $*
exall 12 miss $*
exall 22 pref $*
exall 24 over $*
exall 26 whenwait $*
exall 27 unready $*
exall 28 hitwait $*

set top=`pwd`
foreach i ($*)
   cd $i
   tics2msec pref.[yn] over.[yn] whenwait.[yn]
   miss2ratio miss.[yn] unready.[yn]
   dm 1-x1 < miss.y > hitrate.y
   dm 1-x1 < miss.n > hitrate.n
   abut hitrate.n hitrate.y | dm '(x1-x2)/x1 * 100' > hitrate.i
   cd $top
end

echo OPTIONAL: global total tsync tread wait miss pref over whenwait hitrate unready hitwait
