From d81c12176969a7e55583de8ada804dd1228c179d 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 a8d404b..5481b76 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 12b6eff..f9c626d 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