while [ $# -gt 0 ]; do
case "$1" in
-P) OPT_PLOT_DISABLE=1; shift;;
-p) OPT_PLOT_ONLY=1; shift;;
-X|--no-x11-plot) OPT_NO_X11=1; shift;;
while [ $# -gt 0 ]; do
case "$1" in
-P) OPT_PLOT_DISABLE=1; shift;;
-p) OPT_PLOT_ONLY=1; shift;;
-X|--no-x11-plot) OPT_NO_X11=1; shift;;
- # Create master connection to speed up subsequenct command.
- # The ssh is put into background and the connection is closed
- # after 10 minutes)
+ # Create master connection to speed up subsequenct command.
+ # The ssh is put into background and the connection is closed
+ # after 10 minutes)
ssh -f -M -S $socket root@192.168.2.3 sleep 600 > /dev/null 2>&1
fi
ssh -x -a -S $socket root@192.168.2.3 "$@"
ssh -f -M -S $socket root@192.168.2.3 sleep 600 > /dev/null 2>&1
fi
ssh -x -a -S $socket root@192.168.2.3 "$@"
- if [[ ! "$OPT_PLOT_ONLY" ]]; then
- kernel_versions=$(sshgw uname -r)
- else
- kernel_versions=$(ls results/by-kern)
+ if [[ ! "$OPT_PLOT_ONLY" ]]
+ then kernel_versions=$(sshgw uname -r)
+ else kernel_versions=$(ls results/by-kern)
script=$PWD/$0
cd $dir
echo "Working directory: $dir"
if [[ ! "$OPT_PLOT_ONLY" ]]; then
# Remove data from the last measurement
rm -rf *
script=$PWD/$0
cd $dir
echo "Working directory: $dir"
if [[ ! "$OPT_PLOT_ONLY" ]]; then
# Remove data from the last measurement
rm -rf *
sshgw 'for dev in $(ip l|grep -o vcan[^:]\\+); do ip link del dev $dev; done'
# Reset priorities
sshgw 'chrt -p -f 50 `pidof irq/145-can0` > /dev/null || :'
sshgw 'chrt -p -f 50 `pidof irq/146-can1` > /dev/null || :'
sshgw 'chrt -p -f 49 `pidof sirq-net-rx/0` > /dev/null || :'
sshgw 'chrt -p -f 49 `pidof sirq-net-tx/0` > /dev/null || :'
sshgw 'for dev in $(ip l|grep -o vcan[^:]\\+); do ip link del dev $dev; done'
# Reset priorities
sshgw 'chrt -p -f 50 `pidof irq/145-can0` > /dev/null || :'
sshgw 'chrt -p -f 50 `pidof irq/146-can1` > /dev/null || :'
sshgw 'chrt -p -f 49 `pidof sirq-net-rx/0` > /dev/null || :'
sshgw 'chrt -p -f 49 `pidof sirq-net-tx/0` > /dev/null || :'