#!/bin/csh # set three parameters below to L1, L2, L3 dinero command lines set _L1_="dinero -b16 -i8K -d8K" set _L2_="dinero -b16 -u96K -a3" set _L3_="dinero -b16 -u8M" # set command line below to generate the trace # if an existing trace file, use a "cat" command # if an atom-ized program then run the program set _cmd_="cat /afs/ece/class/ee742/traces/hw2/a.din" # set these three variables to the file names you want dinero stats stored in set _fL1_=L1.out set _fL2_=L2.out set _fL3_=L3.out # normally you won't have to edit past this point... date; uptime set _awkcmd_="awk -f multilevel.awk -v " rm $_fL1_ ; rm $_fL2_ ; rm $_fL3_ echo $_cmd_ "|" $_L1_ -o2 "|" $_awkcmd_ fn=L1.out "|" $_L2_ -o2 "|" $_awkcmd_ fn=L2.out "|" $_L3_ ">" L3.out $_cmd_ | $_L1_ -o2 | $_awkcmd_ fn=L1.out | $_L2_ -o2 | $_awkcmd_ fn=L2.out | $_L3_ > L3.out echo "L1 information is in file:" $_fL1_ echo "L2 information is in file:" $_fL2_ echo "L3 information is in file:" $_fL3_ unset _L1_ ; unset _L2_ ; unset _L3_ ; unset _cmd_ ; unset _awkcmd_ date; uptime