From: Michal Sojka Date: Wed, 1 Dec 2010 12:33:25 +0000 (+0100) Subject: Merge branch 'master' of rtime.felk.cvut.cz:/can-benchmark X-Git-Tag: fix-allnoconfig~289 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/513a76d1726882150986a70de07e1d82a52531d3?hp=619a183d2ccd37bf528b0d0c0141344cc7dbd75f Merge branch 'master' of rtime.felk.cvut.cz:/can-benchmark --- diff --git a/gw-tests/vcan.sh b/gw-tests/vcan.sh index ff7b967..5d3ffe5 100755 --- a/gw-tests/vcan.sh +++ b/gw-tests/vcan.sh @@ -30,7 +30,7 @@ set logscale y set grid set xlabel "Time [{/Symbol m}s]" set ylabel "Latency profile [messages]" -plot [0:1500] [1:$COUNT] \\ +plot [0:1000] [1:$COUNT] \\ EOF lt=1 for i in $numjobs; do diff --git a/gw-tests/vcans.sh b/gw-tests/vcans.sh new file mode 100755 index 0000000..153529d --- /dev/null +++ b/gw-tests/vcans.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +. lib.sh + +numjobs=`seq 1 2 10` + +main() { + for i in $numjobs; do + cleanupgw + lastif=can0 + for j in `seq $((i-1))`; do + sshgw "if ! ip l show dev vcan$j >/dev/null 2>&1; then ip link add dev vcan$j type vcan && ip link set vcan$j up; fi" + sshgw cangw -A -s $lastif -d vcan$j -e -f $(printf %x:C00007FF $((j-1))) -m SET:I:$(printf %x $j).0.0000000000000000 + lastif=vcan$j + done + sshgw cangw -A -s $lastif -d can1 -f $(printf %x:C00007FF $((i-1))) + + latester -d can0 -d can1 -d can2 -o -c $COUNT -i 0 -h hist-$i.dat -f time-$i.dat + done +} + +plot_cmds() { + cat <