update newline fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 23 Dec 2008 19:06:27 +0000 (19:06 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 23 Dec 2008 19:06:27 +0000 (19:06 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@3190 04897980-b3bd-0310-b5e0-8ef037075253

trunk/ltt-control/lttctl/ltt-armall.sh
trunk/ltt-control/lttctl/ltt-disarmall.sh

index a8d404bca8c95fd97a6f61dc1bd2c42c85d29434..5481b76148e4f2199c694ee90792af68d35b3b33 100755 (executable)
@@ -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=$'\r'
 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=$'\r'
 for a in $MARKERS; do
        echo Connecting $a
 
index 12b6eff3386febef5cf3348f09c5c6d3bf587eb7..f9c626d409b3348198d3493cba96d8020334f1f6 100755 (executable)
@@ -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=$'\r'
 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=$'\r'
 for a in $MARKERS; do
        echo Disconnecting $a
 
This page took 0.023562 seconds and 4 git commands to generate.