X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/fff0089e1e06ab133204bde2dedfc23be4921380..167bee35e3ffc6500bb52bbb91d3b423d2863abf:/tests/ethflood.sh diff --git a/tests/ethflood.sh b/tests/ethflood.sh index c25d447..b5c12dc 100755 --- a/tests/ethflood.sh +++ b/tests/ethflood.sh @@ -3,24 +3,31 @@ . _lib.sh t() { - ssh root@${SSH_CONNECTION%% *} 'ping -f "${SSH_CONNECTION%% *}"' & - PID_PING=$! - boost_irq_prio - PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1` - vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000 - kill $PID_S - kill $PID_PING + for i in norm boost; do + ssh root@${SSH_CONNECTION%% *} 'ping -f "${SSH_CONNECTION%% *}"' & + PID_PING=$! + echo 0 1 > $DRIVER-$i-1000.dat + if [ $i != "boost" ] || boost_irq_prio 90; then + 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 0 -c $COUNT + kill $PID_S + fi + kill $PID_PING + sleep 1 # Wait for remote buffers to become empty + done } -PLOT_CMD=' -set title "Round-trip time with ethenet load - ping -f (`uname -r`)" +p() { cat <