X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=trunk%2Fltt-control%2Flttctl%2Fltt-disarmall.sh;h=f9c626d409b3348198d3493cba96d8020334f1f6;hb=d81c12176969a7e55583de8ada804dd1228c179d;hp=027fb2e369d90627bfa6a1fccddc46655cf30f38;hpb=ae4aa4972bb6b7c78d71ac55761fb03405c36bc0;p=ltt-control.git diff --git a/trunk/ltt-control/lttctl/ltt-disarmall.sh b/trunk/ltt-control/lttctl/ltt-disarmall.sh index 027fb2e..f9c626d 100755 --- a/trunk/ltt-control/lttctl/ltt-disarmall.sh +++ b/trunk/ltt-control/lttctl/ltt-disarmall.sh @@ -1,16 +1,21 @@ #excluding locking #excluding core markers, not connected to default. echo Disconnecting all markers -MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_|grep -v ^lockdep_|grep -v ^lockdep|grep -v ^tap_` +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=$' ' for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done # Markers starting with "tap_" are considered high-speed. echo Disconnecting high-rate markers to tap -MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_` +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=$' ' for a in $MARKERS; do echo Disconnecting $a