11 while [ "${1#-}" != "$1" ]; do
19 dirs=oneatatime.ftrace
22 dirs=($(seq 126 2 170))
24 for i in ${!dirs[*]}; do
25 args[$i]=-p${dirs[$i]}
36 methods=${@:-rtems kernel read-write readnb-write readnb-noirq mmap-write mmap-mmap mmapbusy-write mmapbusy-mmap readbusy-write}
39 for method in $methods; do
41 rtems) ../../rtems/gw/boot --expect-raw '"]", sub { shift->send_slow(0.1, "startGW\n"); }' --exiton 'tasks started';;
42 kernel) ../ppc/boot -a kernelgw --exiton "Kernel GW started";;
43 read-write) ../ppc/boot --exiton "UGW started";;
44 readnb-write) ../ppc/boot -a "ugw=|-n|" --exiton "UGW started";;
45 readnb-noirq) ../ppc/boot -a "ugw=|-n|" --kernel uImage.noirq --exiton "UGW started";;
46 mmap-write) ../ppc/boot -a "ugw=|-r mmap|" --exiton "UGW started";;
47 mmap-mmap) ../ppc/boot -a "ugw=|-r mmap -t mmap|" --exiton "UGW started";;
48 mmapbusy-write) ../ppc/boot -a "ugw=|-r mmapbusy|" --exiton "UGW started";;
49 mmapbusy-mmap) ../ppc/boot -a "ugw=|-r mmapbusy -t mmap|" --exiton "UGW started";;
50 readbusy-write) ../ppc/boot -a "ugw=|-b 300|" --exiton "UGW started";;
52 echo >&2 "Unknown method '$method'";
56 for i in ${!dirs[*]}; do
60 ssh glab "latester -d can0 -d can1 -d can2 -c 10000 -q -n $method $arg"
62 scp glab:"$method-*.txt" $dir
63 (cd $dir && ln -sf ../Makefile ../plot.gp ../preprocess.m .)
66 sleep 2 # Wait for cu at glab to die
69 if [ ${#dirs[*]} -gt 1 ]; then
70 for d in ${dirs[@]}; do