X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-control%2Flttctl%2Fltt-armall.sh;h=f0824c819eebab7a9656b2ebf69714a10b5b46c1;hb=31efe1f8304f09a4f4139c387a98d3215cd423c9;hp=31b0dc055826087a47ba4ed8f54c41cdb6ee64ec;hpb=b406b83259b3ae941993726336ce83632983bac3;p=lttv.git diff --git a/ltt-control/lttctl/ltt-armall.sh b/ltt-control/lttctl/ltt-armall.sh index 31b0dc05..f0824c81 100755 --- a/ltt-control/lttctl/ltt-armall.sh +++ b/ltt-control/lttctl/ltt-armall.sh @@ -1,5 +1,47 @@ #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 Connecting all markers -MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_` -for a in $MARKERS; do echo Connecting $a; echo "connect $a default" > /proc/ltt > /proc/ltt; done + +for c in ${MARKERSROOT}/*; do + case ${c} in + ${MARKERSROOT}/metadata) + ;; + ${MARKERSROOT}/locking) + ;; + ${MARKERSROOT}/lockdep) + ;; + *) + for m in ${c}/*; do + echo Connecting ${m} + echo 1 > ${m}/enable + done + ;; + esac +done + + +# Connect the interesting high-speed markers to the marker tap. +# Markers starting with "tap_" are considered high-speed. +#echo Connecting high-rate markers to tap +#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` +# +#IFS=${N} +#for a in $MARKERS; do +# echo Connecting $a +# +# #redirect markers carrying state information to dedicated channels +# case $a in +# *) +# CHANNEL= +# ;; +# esac +# +# echo "connect $a ltt_tap_marker" > /proc/ltt +#done