X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=trunk%2Fltt-control%2Flttctl%2Fltt-disarmall.sh;h=83e81ce1bea5051d9bcccc70bb0aa7bf8a2962b1;hb=d48e1c4fa73bce0299398eb7359f0ad77b9ebd9d;hp=f9c626d409b3348198d3493cba96d8020334f1f6;hpb=d81c12176969a7e55583de8ada804dd1228c179d;p=ltt-control.git 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