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