]> rtime.felk.cvut.cz Git - can-eth-gw.git/blob - ppc/bench-kernel
Understand -h option
[can-eth-gw.git] / ppc / bench-kernel
1 #!/bin/sh
2 N=100
3 MODE=oneattime
4 SLEEP=1
5 LOGANDPRINT="tee -a result | cut -c 2-"
6 RESULTFILE=/dev/null
7 SENDRES=0
8
9 if test $# -eq 1; then
10         RESULTFILE=$1
11         SENDRES=1
12 fi
13
14 #-----------------
15 # bench kernel
16 #-----------------
17
18 sleep $SLEEP
19 echo "#kernel udp->can: " | tee -a result | cut -c 2-
20 cegwbench -s udp@127.0.0.1:10501 -d can@vcan0 -n $N -m $MODE -t 1 >> $RESULTFILE
21
22 sleep $SLEEP
23 echo "#kernel can->udp: " | tee -a result | cut -c 2-
24 cegwbench -s can@vcan0 -d udp@127.0.0.1:10502 -n $N -m $MODE -t 1 >> $RESULTFILE
25