]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Fix line breaks in plot commands
authorMichal Sojka <sojka@os.inf.tu-dresden.de>
Mon, 26 Sep 2011 09:54:10 +0000 (11:54 +0200)
committerMichal Sojka <sojka@os.inf.tu-dresden.de>
Mon, 26 Sep 2011 09:57:27 +0000 (11:57 +0200)
gw-tests/mod.sh
gw-tests/nop-canalyzer.sh
gw-tests/nop-highprio-time.sh
gw-tests/nop-highprio.sh
gw-tests/nop-time.sh
gw-tests/nop.sh
gw-tests/pc.sh
gw-tests/user-time.sh
gw-tests/user.sh

index a5b86790bbfa37857ed5ba0dc45b7ea3a923c2d2..7d372ae72add3ba988531145a712614d14b40df0 100755 (executable)
@@ -56,11 +56,11 @@ plot_cmds() {
 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 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]"
-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", \
-          "mod2-hist.txt" $using with lp lt 3 title "Four modifications", \
-          "modcsxor-hist.txt" $using with lp lt 4 title "Four modifications and XOR checksum",\
+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", \\
+          "mod2-hist.txt" $using with lp lt 3 title "Four modifications", \\
+          "modcsxor-hist.txt" $using with lp lt 4 title "Four modifications and XOR checksum",\\
           "modcscrc8-hist.txt" $using with lp lt 5 title "Four modifications and CRC8 checksum"
 EOF
 }
           "modcscrc8-hist.txt" $using with lp lt 5 title "Four modifications and CRC8 checksum"
 EOF
 }
index 4028cf2cacc0caedbbd7775ec6fb2cdb2dc3733d..045c83d5298e54ef88ac02138b7aa473e6e8142d 100755 (executable)
@@ -37,14 +37,14 @@ set termoption dashed
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-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", \
-          "len6-hist.txt" with lp lc 3 lt 1 title "PC: 6 byte messages", \
-          "len8-hist.txt" with lp lc 4 lt 1 title "PC: 8 byte messages", \
-          "canalyzer-2-hist.txt" with lp lc 1 lt 2 title "CANalyzer: 2 byte messages", \
-          "canalyzer-4-hist.txt" with lp lc 2 lt 2 title "CANalyzer: 4 byte messages", \
-          "canalyzer-6-hist.txt" with lp lc 3 lt 2 title "CANalyzer: 6 byte messages", \
+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", \\
+          "len6-hist.txt" with lp lc 3 lt 1 title "PC: 6 byte messages", \\
+          "len8-hist.txt" with lp lc 4 lt 1 title "PC: 8 byte messages", \\
+          "canalyzer-2-hist.txt" with lp lc 1 lt 2 title "CANalyzer: 2 byte messages", \\
+          "canalyzer-4-hist.txt" with lp lc 2 lt 2 title "CANalyzer: 4 byte messages", \\
+          "canalyzer-6-hist.txt" with lp lc 3 lt 2 title "CANalyzer: 6 byte messages", \\
           "canalyzer-8-hist.txt" with lp lc 4 lt 2 title "CANalyzer: 8 byte messages"
 EOF
 }
           "canalyzer-8-hist.txt" with lp lc 4 lt 2 title "CANalyzer: 8 byte messages"
 EOF
 }
index 80705a75be67a3e3ccc5e67133a6b325ed9cbe5d..b8c00febf54429356f43a1ad47c6f4e4c2621be4 100755 (executable)
@@ -15,10 +15,10 @@ set grid xtics ytics mytics lw 1, lw 0.5
 set key left
 set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
 set key left
 set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
-plot [:] [0.01:4] \
-          "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \
-          "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \
-          "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \
+plot [:] [0.01:4] \\
+          "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \\
+          "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \\
+          "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \\
           "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages"
 EOF
 }
           "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages"
 EOF
 }
index 13de911f6d810c3b728f6a011a2843b5a22435c1..a13e003ebb7d5863052e65f2bcb0a92988f595e6 100755 (executable)
@@ -29,10 +29,10 @@ set logscale xy
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-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", \
-          "len6-hist.txt" with lp lt 3 title "6 byte messages", \
+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", \\
+          "len6-hist.txt" with lp lt 3 title "6 byte messages", \\
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }
index 36305cbe1c51495eac9df307a9fcf7a72cfe4c6a..7bf159222e4a62347ad931eb69a90693bd125606 100755 (executable)
@@ -22,10 +22,10 @@ set grid xtics ytics mytics lw 1, lw 0.5
 set key left
 set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
 set key left
 set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
-plot [:] [$range] \
-          "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \
-          "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \
-          "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \
+plot [:] [$range] \\
+          "len2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "2 byte messages", \\
+          "len4-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "4 byte messages", \\
+          "len6-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "6 byte messages", \\
           "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages"
 EOF
 }
           "len8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "8 byte messages"
 EOF
 }
index b0fb5012359d15493ea5b266a4b1653daa4d09e8..5e4bfc1ff03382808b356f3478b76873077120de 100755 (executable)
@@ -25,10 +25,10 @@ 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 grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-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", \
-          "len6-hist.txt" with lp lt 3 title "6 byte messages", \
+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", \\
+          "len6-hist.txt" with lp lt 3 title "6 byte messages", \\
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }
index e022f1d70ee59e5813e5957aa021ff05805510ae..9d20d3beac13e1a66afb366730467b7976edf052 100755 (executable)
@@ -19,10 +19,10 @@ set logscale y
 set grid
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 set grid
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-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", \
-          "len6-hist.txt" with lp lt 3 title "6 byte messages", \
+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", \\
+          "len6-hist.txt" with lp lt 3 title "6 byte messages", \\
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }
           "len8-hist.txt" with lp lt 4 title "8 byte messages"
 EOF
 }
index a6221ec0ad10b0f1741ec712c84f5a067e18de6b..a4a518eb37c4fce9bdbd6f0360842514c42b74d9 100755 (executable)
@@ -27,10 +27,10 @@ set title "Single GW rule for all messages, no modifications"
 set grid xtics ytics mytics lw 1, lw 0.5
 set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
 set grid xtics ytics mytics lw 1, lw 0.5
 set xlabel "Experiment time [s]"
 set ylabel "Latency [ms]"
-plot [:] [$range] \
-          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \
-          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \
-          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \
+plot [:] [$range] \\
+          "user2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 2 byte messages", \\
+          "user8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Userspace GW, 8 byte messages", \\
+          "kern2-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 2 byte messages", \\
           "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages"
 EOF
 }
           "kern8-msgs.txt" using (\$2-$min):(1000*\$14-0.001*\$16) with points title "Kernel GW, 8 byte messages"
 EOF
 }
index 9687c4beb895cd27afa974f721a39fa3717898b1..554329f21acbe4ea1d307528b361185c5cf9fdb5 100755 (executable)
@@ -31,10 +31,10 @@ set termoption dashed
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
 set grid xtics mxtics ytics mytics lw 1, lw 0.5
 set xlabel "Time [ms]"
 set ylabel "Latency profile [messages]"
-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", \
+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"
 EOF
 }
           "kern8-hist.txt" with lp lc 2 lt 2 title "Kernel GW, 8 byte messages"
 EOF
 }