make -C socketcan/kernel/2.6 CONFIG_CAN_KVASER_PCI=m
# Compile lincan and vca_canping
+make distclean
make default-config
make
PID_LOAD=$!
[ $i == "boost" ] && boost_irq_prio 90
PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
- vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 2 -c 10000
+ vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 0 -c 10000
kill $PID_S
kill $PID_LOAD
done
set grid
set xlabel "Time [{/Symbol m}s]"
set ylabel "Latency profile [messages]"
-plot [0:] "socketcan-norm-1000.dat" with lp title "Socketcan",\
- "lincan-norm-1000.dat" with lp title "Lincan",\
- "socketcan-boost-1000.dat" with lp title "Socketcan boosted IRQ prio",\
- "lincan-boost-1000.dat" with lp title "Lincan boosted IRQ prio"
+plot [0:] "socketcan-norm-1000.dat" with lp lt 1 title "Socketcan",\
+ "lincan-norm-1000.dat" with lp lt 2 title "Lincan",\
+ "socketcan-boost-1000.dat" with lp lt 1 title "Socketcan boosted IRQ prio",\
+ "lincan-boost-1000.dat" with lp lt 2 title "Lincan boosted IRQ prio"
'
[ $i == "boost" ] && boost_irq_prio 90
cpufreq-set -f 300MHz
PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
- vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 2 -c 10000
+ vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 0 -c 10000
cpufreq-set -f 2400MHz
kill $PID_S
kill $PID_LOAD
set grid
set xlabel "Time [{/Symbol m}s]"
set ylabel "Latency profile [messages]"
-plot [0:] "socketcan-norm-1000.dat" with lp title "Socketcan",\
- "lincan-norm-1000.dat" with lp title "Lincan",\
- "socketcan-boost-1000.dat" with lp title "Socketcan boosted IRQ prio",\
- "lincan-boost-1000.dat" with lp title "Lincan boosted IRQ prio"
+plot [0:] "socketcan-norm-1000.dat" with lp lt 1 title "Socketcan",\
+ "lincan-norm-1000.dat" with lp lt 2 title "Lincan",\
+ "socketcan-boost-1000.dat" with lp lt 1 title "Socketcan boosted IRQ prio",\
+ "lincan-boost-1000.dat" with lp lt 2 title "Lincan boosted IRQ prio"
'
-
t() {
PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN0`
- vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 1 -c 10000
+ vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c 10000
kill $PID_S
}
t() {
PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
- vca_canping -m 1 -R FF:$RTPRIO -v -e $DRIVER-times -g $DRIVER -t 1 -d $CAN0 -w 1 -n 10 -c 10000
+ vca_canping -m 1 -R FF:$RTPRIO -v -e $DRIVER-times -g $DRIVER -t 1 -d $CAN0 -w 0 -n 10 -c 10000
kill $PID_S
}
set grid
set xlabel "Ping number"
set ylabel "Round-trip time [{/Symbol m}s]"
-plot "lincan-times-1000.dat" with lines, "socketcan-times-1000.dat" with lines
+plot "socketcan-times-1000.dat" with lines, "lincan-times-1000.dat" with lines
'