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

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

index 5481b76148e4f2199c694ee90792af68d35b3b33..fe103d14a98ea3dc3c8e6a61a2f33c0911d0336c 100755 (executable)
@@ -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=$'\r'
+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=$'\r'
+IFS=${N}
 for a in $MARKERS; do
        echo Connecting $a
 
index f9c626d409b3348198d3493cba96d8020334f1f6..83e81ce1bea5051d9bcccc70bb0aa7bf8a2962b1 100755 (executable)
@@ -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=$'\r'
+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=$'\r'
+IFS=${N}
 for a in $MARKERS; do
        echo Disconnecting $a
 
This page took 0.024114 seconds and 4 git commands to generate.