X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttctl%2Fltt-disarmall.sh;fp=lttctl%2Fltt-disarmall.sh;h=2473b815bf4c2a713b8ef71300717c5878a4edd9;hb=5e1fd42a8d1bbbe1e1283e4c652994ff738dd6a7;hp=0000000000000000000000000000000000000000;hpb=1c2291f5d2f79795da29153bd5b962f0539d3316;p=ltt-control.git diff --git a/lttctl/ltt-disarmall.sh b/lttctl/ltt-disarmall.sh new file mode 100755 index 0000000..2473b81 --- /dev/null +++ b/lttctl/ltt-disarmall.sh @@ -0,0 +1,38 @@ +#excluding core markers (already connected) +#excluding locking markers (high traffic) + +DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}') +MARKERSROOT=${DEBUGFSROOT}/ltt/markers + +echo Disconnecting all markers + +for c in ${MARKERSROOT}/*; do + case ${c} in + ${MARKERSROOT}/metadata) + ;; + ${MARKERSROOT}/locking) + ;; + ${MARKERSROOT}/lockdep) + ;; + *) + for m in ${c}/*; do + echo Disconnecting ${m} + echo 0 > ${m}/enable + done + ;; + esac +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 " " $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` +# +#IFS=${N} +#for a in $MARKERS; do +# echo Disconnecting $a +# +# echo "disconnect $a ltt_tap_marker" > /proc/ltt +#done