. lib.sh
-numjobs=`seq 0 2 12`
+numjobs=`seq 0 2 10`
main() {
sshgw 'ip link add dev vcan0 type vcan && ip link set vcan0 up'
done
sshgw cangw -A -s vcan0 -d can1 -f $(printf %x:C00007FF $i)
- latester -d can0 -d can1 -d can2 -c $COUNT -i 0 -n hops$i
+ latester -d can0 -d can1 -d can2 -c $COUNT -i 0 $(traffic_and_length 2) -n hops$i
done
sshgw ip link del dev vcan0
}
+ADDITIONAL_PLOTS=detail
+
plot_cmds() {
+ if [[ "$1" = detail ]]; then
+ range=0.1:0.4
+ echo "set logscale y"
+ echo "set mxtics "
+ else
+ range=0.1:1000
+ echo "set logscale xy"
+ fi
cat <<EOF
-set title "Chained GW jobs on a signle VCAN interface"
-set logscale xy
+set title "Chained GWs on a single VCAN interface"
set grid xtics mxtics ytics mytics lw 1, lw 0.5
set xlabel "Time [ms]"
set ylabel "Latency profile [messages]"
-plot [0.1:1000] [1:$COUNT] \\
+plot [$range] [1:$COUNT] \\
EOF
lt=2
for i in $numjobs; do
- echo_plot "\"hops$i-hist.txt\" with lp lt $lt title \"$((i+2)) GW jobs, 1 vcan\""
+ echo_plot "\"hops$i-hist.txt\" with lp lt $lt pt $lt title \"$((i+2)) GW jobs, 1 vcan\""
lt=$((lt+1))
done
}