X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=trunk%2Fltt-control%2Flttctl%2Fltt-armall.sh;fp=trunk%2Fltt-control%2Flttctl%2Fltt-armall.sh;h=5481b76148e4f2199c694ee90792af68d35b3b33;hb=d81c12176969a7e55583de8ada804dd1228c179d;hp=a8d404bca8c95fd97a6f61dc1bd2c42c85d29434;hpb=fc465b859c406c0ccf1051ae15ceeee9830d4577;p=ltt-control.git 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