From: compudj Date: Tue, 23 Dec 2008 19:49:22 +0000 (+0000) Subject: really fix newline X-Git-Tag: 0.80~38 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=d48e1c4fa73bce0299398eb7359f0ad77b9ebd9d;p=ltt-control.git really fix newline git-svn-id: http://ltt.polymtl.ca/svn@3191 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/trunk/ltt-control/lttctl/ltt-armall.sh b/trunk/ltt-control/lttctl/ltt-armall.sh index 5481b76..fe103d1 100755 --- a/trunk/ltt-control/lttctl/ltt-armall.sh +++ b/trunk/ltt-control/lttctl/ltt-armall.sh @@ -5,7 +5,10 @@ echo Connecting all markers MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u|grep -v ^metadata|grep -v ^locking|grep -v ^lockdep` #separator is newline, ensure compatibility with bash and ash -IFS=$' ' +N=" +" + +IFS=${N} for a in $MARKERS; do echo Connecting $a @@ -40,8 +43,7 @@ MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_` #Uncomment the following to also record lockdep events. #MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep` -#separator is newline, ensure compatibility with bash and ash -IFS=$' ' +IFS=${N} for a in $MARKERS; do echo Connecting $a diff --git a/trunk/ltt-control/lttctl/ltt-disarmall.sh b/trunk/ltt-control/lttctl/ltt-disarmall.sh index f9c626d..83e81ce 100755 --- a/trunk/ltt-control/lttctl/ltt-disarmall.sh +++ b/trunk/ltt-control/lttctl/ltt-disarmall.sh @@ -3,8 +3,12 @@ echo Disconnecting all markers MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u|grep -v ^metadata|grep -v ^locking|grep -v ^lockdep|grep -v ^tap` + #separator is newline, ensure compatibility with bash and ash -IFS=$' ' +N=" +" + +IFS=${N} for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done # Markers starting with "tap_" are considered high-speed. @@ -14,8 +18,7 @@ MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u |grep ^tap` #Uncomment the following to also stop recording lockdep events. #MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep` -#separator is newline, ensure compatibility with bash and ash -IFS=$' ' +IFS=${N} for a in $MARKERS; do echo Disconnecting $a