11 while [ "${1#-}" != "$1" ]; do
25 methods=${@:-rtems kernel read-write readnb-write mmap-write mmap-mmap mmapbusy-write mmapbusy-mmap readbusy-write}
27 for method in $methods; do
30 rtems) ../../rtems/gw/boot --expect '"]", sub { shift->send_slow(0.1, "startGW\n"); }' --exiton 'tasks started';;
31 kernel) ../ppc/boot -a kernelgw --exiton "Kernel GW started";;
32 read-write) ../ppc/boot --exiton "UGW started";;
33 readnb-write) ../ppc/boot -a "ugw=|-n|" --exiton "UGW started";;
34 mmap-write) ../ppc/boot -a "ugw=|-r mmap|" --exiton "UGW started";;
35 mmap-mmap) ../ppc/boot -a "ugw=|-r mmap -t mmap|" --exiton "UGW started";;
36 mmapbusy-write) ../ppc/boot -a "ugw=|-r mmapbusy|" --exiton "UGW started";;
37 mmapbusy-mmap) ../ppc/boot -a "ugw=|-r mmapbusy -t mmap|" --exiton "UGW started";;
38 readbusy-write) ../ppc/boot -a "ugw=|-b 300|" --exiton "UGW started";;
40 echo >&2 "Unknown method '$method'";
43 ssh glab "latester -d can0 -d can1 -d can2 -c 10000 -q -n $method $args"
45 scp glab:"$method-*.txt" $dir
46 (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .)
48 sleep 2 # Wait for cu at glab to die