]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/user.sh
Fix for previous commit.
[can-benchmark.git] / gw-tests / user.sh
index 554329f21acbe4ea1d307528b361185c5cf9fdb5..183ebd9489e03a98f0a276703e08c6a09f652481 100755 (executable)
@@ -4,6 +4,7 @@
 
 main() {
     if [ "$kvers" = 3.0.4-rt14-00008-gb2052fd -a "$load" = eth -a $traffic != oneatatime ]; then echo "Skipping eth test"; SKIPPED=1; return; fi
+    if [ "$kvers" = 3.4.33-rt47-00004-gc58c9ae -a "$load" = eth -a $traffic != oneattime ]; then echo "Skipping eth test"; SKIPPED=1; return; fi;
     pid=$(sshgw 'chrt -f 90 candump -s2 -b can1 can0 & echo $!')
     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 2) -n user2
     latester -d can0 -d can1 -d can2 -c $COUNT $(traffic_and_length 8) -n user8
@@ -26,16 +27,20 @@ plot_cmds() {
        echo "set logscale xy"
     fi
     cat <<EOF
-set title "Kernel vs. userspace GW, no modifications"
 set termoption dashed
+set style line 1 lt 1 lc 1 pt 1
+set style line 2 lt 2 lc 1 pt 1
+set style line 3 lt 1 lc 2 pt 2
+set style line 4 lt 2 lc 2 pt 2
+set title "Kernel vs. userspace GW, no modifications"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [ms]"
-set ylabel "Latency profile [messages]"
+set xlabel "GW latency [ms]"
+set ylabel "Latency profile [frames]"
 plot [$range] [1:$COUNT] \\
-          "user2-hist.txt" with lp lc 1 lt 1 title "Userspace GW, 2 byte messages", \\
-          "user8-hist.txt" with lp lc 1 lt 2 title "Userspace GW, 8 byte messages", \\
-          "kern2-hist.txt" with lp lc 2 lt 1 title "Kernel GW, 2 byte messages", \\
-          "kern8-hist.txt" with lp lc 2 lt 2 title "Kernel GW, 8 byte messages"
+          "user2-hist.txt" with lp ls 1 title "Userspace GW, 2 byte messages", \\
+          "user8-hist.txt" with lp ls 2 title "Userspace GW, 8 byte messages", \\
+          "kern2-hist.txt" with lp ls 3 title "Kernel GW, 2 byte messages", \\
+          "kern8-hist.txt" with lp ls 4 title "Kernel GW, 8 byte messages"
 EOF
 }