From 5a2c8a574c97aa8f2063c282353032ac1bf42f2e Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 23 Dec 2008 19:06:27 +0000 Subject: [PATCH] update newline fix git-svn-id: http://ltt.polymtl.ca/svn@3190 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/ltt-control/lttctl/ltt-armall.sh | 8 ++++---- trunk/ltt-control/lttctl/ltt-disarmall.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/trunk/ltt-control/lttctl/ltt-armall.sh b/trunk/ltt-control/lttctl/ltt-armall.sh index a8d404bc..5481b761 100755 --- a/trunk/ltt-control/lttctl/ltt-armall.sh +++ b/trunk/ltt-control/lttctl/ltt-armall.sh @@ -4,8 +4,8 @@ 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 -IFS=$ +#separator is newline, ensure compatibility with bash and ash +IFS=$' ' for a in $MARKERS; do echo Connecting $a @@ -40,8 +40,8 @@ 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 -IFS=$ +#separator is newline, ensure compatibility with bash and ash +IFS=$' ' 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 12b6eff3..f9c626d4 100755 --- a/trunk/ltt-control/lttctl/ltt-disarmall.sh +++ b/trunk/ltt-control/lttctl/ltt-disarmall.sh @@ -3,8 +3,8 @@ 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 -IFS=$ +#separator is newline, ensure compatibility with bash and ash +IFS=$' ' for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done # Markers starting with "tap_" are considered high-speed. @@ -14,8 +14,8 @@ 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 -IFS=$ +#separator is newline, ensure compatibility with bash and ash +IFS=$' ' for a in $MARKERS; do echo Disconnecting $a -- 2.34.1