6 if [ "$kvers" = 3.0.4-rt14-00008-gb2052fd -a "$load" = eth -a $traffic != oneatatime ]; then echo "Skipping eth test"; SKIPPED=1; return; fi
7 pid=$(sshgw 'chrt -f 90 candump -s2 -b can1 can0 & echo $!')
8 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -n user2
9 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n user8
11 sshgw cangw -A -s can0 -d can1
12 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -n kern2
13 latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n kern8
16 ADDITIONAL_PLOTS=detail
19 if [[ "$1" = detail ]]; then
20 [[ $traffic = eth ]] && return
26 echo "set logscale xy"
29 set title "Kernel vs. userspace GW, no modifications"
30 set grid xtics mxtics ytics mytics lw 1, lw 0.5
31 set xlabel "Time [ms]"
32 set ylabel "Latency profile [messages]"
33 plot [$range] [1:$COUNT] \
34 "user2-hist.txt" with lp lt 1 title "Userspace GW, 2 byte messages", \
35 "user8-hist.txt" with lp lt 2 title "Userspace GW, 8 byte messages", \
36 "kern2-hist.txt" with lp lt 1 title "Kernel GW, 2 byte messages", \
37 "kern8-hist.txt" with lp lt 2 title "Kernel GW, 8 byte messages"