]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/filter.sh
Commit adding basic ethernet capability to the GW application - responding to pings.
[can-benchmark.git] / gw-tests / filter.sh
index 38652f412b2c7bd309c3085d3f911a79c3cf6f4b..1222022ccc5bd306913ed8425690c54f3445466c 100755 (executable)
@@ -9,19 +9,28 @@ prepare() {
 }
 
 main() {
 }
 
 main() {
+    if [ "$kvers" = 3.0.4-rt14-00008-gb2052fd -a "$load" = eth -a $traffic != oneatatime ]; then echo "Skipping eth test"; SKIPPED=1; return; fi
     for i in $ids; do
        latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -n id-$i
     done
 }
 
     for i in $ids; do
        latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -n id-$i
     done
 }
 
+ADDITIONAL_PLOTS=detail
+
 plot_cmds() {
 plot_cmds() {
+    if [[ "$1" = detail ]]; then
+       range=0:0.8
+       echo "set logscale y"
+    else
+       range=0.01:100
+       echo "set logscale xy"
+    fi
     cat <<EOF
     cat <<EOF
-set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
-set logscale xy
+set title "2048 GW rules (one per id, mask 0x7FF), no modifications"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [ms]"
-set ylabel "Latency profile [messages]"
-plot [0.1:100] [1:$COUNT] \\
+set xlabel "GW latency [ms]"
+set ylabel "Latency profile [frames]"
+plot [$range] [1:$COUNT] \\
 EOF
     lt=1
     for i in $ids; do
 EOF
     lt=1
     for i in $ids; do