cat <<EOF
set title "2048 GW rules (one per id, mask C00007FF), 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] \\
EOF
lt=1
cat <<EOF
set title "2048 GW rules (one per id, mask 0x7FF), 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] \\
EOF
lt=1
cat <<EOF
set title "Different lengths of filter list, only the last one matches"
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] \\
EOF
lt=1
cat <<EOF
set title "Different lengths of filter list, only the last one matches"
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] \\
EOF
lt=1
else
range=0.01:10
echo "set logscale xy"
- echo "set xlabel 'Time [ms]'"
+ echo "set xlabel 'GW latency [ms]'"
using=""
fi
cat <<EOF
set title "Single GW rule for all messages with modifications, 8 byte messages"
set grid xtics mxtics ytics mytics lw 1, lw 0.5
-set ylabel "Latency profile [messages]"
+set ylabel "Latency profile [frames]"
plot [$range] [1:$COUNT] \\
"nop-hist.txt" $using with lp lt 1 title "No modifications", \\
"mod-hist.txt" $using with lp lt 2 title "Two modifications", \\
set title "Measurment precission: PC versus CANalyzer"
set termoption dashed
set grid xtics mxtics ytics mytics lw 1, lw 0.5
-set xlabel "Time [ms]"
-set ylabel "Latency profile [messages]"
+set xlabel "Total latency [ms]"
+set ylabel "Latency profile [frames]"
plot [$range] [1:$COUNT] \\
"len2-hist.txt" with lp lc 1 lt 1 title "PC: 2 byte messages", \\
"len4-hist.txt" with lp lc 2 lt 1 title "PC: 4 byte messages", \\
set title "Single GW rule for all messages, no modifications, high (soft)irq task priority"
set logscale xy
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 [0.01:100] [1:$COUNT] \\
"len2-hist.txt" with lp lt 1 title "2 byte messages", \\
"len4-hist.txt" with lp lt 2 title "4 byte messages", \\
cat <<EOF
set title "Single GW rule for all messages, 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] \\
"len2-hist.txt" with lp lt 1 title "2 byte messages", \\
"len4-hist.txt" with lp lt 2 title "4 byte messages", \\
set title "No GW, two interfaces in PC (Latency = t_{kernel RX} - t_{before send} - t_{TX length})"
set logscale y
set grid
-set xlabel "Time [ms]"
-set ylabel "Latency profile [messages]"
+set xlabel "Latency [ms]"
+set ylabel "Latency profile [frames]"
plot [0.01:$max] [1:$COUNT] \\
"len2-hist.txt" with lp lt 1 title "2 byte messages", \\
"len4-hist.txt" with lp lt 2 title "4 byte messages", \\
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 ls 1 title "Userspace GW, 2 byte messages", \\
"user8-hist.txt" with lp ls 2 title "Userspace GW, 8 byte messages", \\
cat <<EOF
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]"
+set xlabel "GW latency [ms]"
+set ylabel "Latency profile [frames]"
plot [$range] [1:$COUNT] \\
EOF
lt=2
cat <<EOF
set title "Chained GWs on multiple VCAN interfaces"
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] \\
EOF
lt=1