X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/25a4353d840f78d6814bb61bc1981b0d91edb6c5..4c7dfd96364c28a39c280355ad473d42680c1a6f:/ugw/data/bench-all.sh diff --git a/ugw/data/bench-all.sh b/ugw/data/bench-all.sh index 9178392..266fea7 100755 --- a/ugw/data/bench-all.sh +++ b/ugw/data/bench-all.sh @@ -12,7 +12,18 @@ while [ "${1#-}" != "$1" ]; do case "$1" in -o) args=--oneattime - dir=oneatatime + dirs=oneatatime + ;; + -ftrace) + args=--oneattime + dirs=oneatatime.ftrace + ;; + -p) + dirs=($(seq 126 2 170)) + declare -a args + for i in ${!dirs[*]}; do + args[$i]=-p${dirs[$i]} + done ;; -p*) args=$1 @@ -22,15 +33,16 @@ while [ "${1#-}" != "$1" ]; do shift done -methods=${@:-rtems kernel read-write readnb-write mmap-write mmap-mmap mmapbusy-write mmapbusy-mmap readbusy-write} +methods=${@:-rtems kernel read-write readnb-write readnb-noirq mmap-write mmap-mmap mmapbusy-write mmapbusy-mmap readbusy-write} +set -x for method in $methods; do - set -x case $method in - rtems) ../../rtems/gw/boot --expect '"]", sub { shift->send_slow(0.1, "startGW\n"); }' --exiton 'tasks started';; + rtems) ../../rtems/gw/boot --expect-raw '"]", sub { shift->send_slow(0.1, "startGW\n"); }' --exiton 'tasks started';; kernel) ../ppc/boot -a kernelgw --exiton "Kernel GW started";; read-write) ../ppc/boot --exiton "UGW started";; readnb-write) ../ppc/boot -a "ugw=|-n|" --exiton "UGW started";; + readnb-noirq) ../ppc/boot -a "ugw=|-n|" --kernel uImage.noirq --exiton "UGW started";; mmap-write) ../ppc/boot -a "ugw=|-r mmap|" --exiton "UGW started";; mmap-mmap) ../ppc/boot -a "ugw=|-r mmap -t mmap|" --exiton "UGW started";; mmapbusy-write) ../ppc/boot -a "ugw=|-r mmapbusy|" --exiton "UGW started";; @@ -40,10 +52,22 @@ for method in $methods; do echo >&2 "Unknown method '$method'"; exit 1; esac - ssh glab "latester -d can0 -d can1 -d can2 -c 10000 -q -n $method $args" - mkdir -p $dir - scp glab:"$method-*.txt" $dir - (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .) set +x + for i in ${!dirs[*]}; do + arg=${args[$i]} + dir=${dirs[$i]} + set -x + ssh glab "latester -d can0 -d can1 -d can2 -c 10000 -q -n $method $arg" + mkdir -p $dir + scp glab:"$method-*.txt" $dir + (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .) + set -x + done sleep 2 # Wait for cu at glab to die done + +if [ ${#dirs[*]} -gt 1 ]; then + for d in ${dirs[@]}; do + make -C $d + done +fi