X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=trunk%2Fltt-control%2Flttctl%2Fltt-armall.sh;h=ae6867de4d33abe87f168164676bda4019dd5684;hb=024405bd6d7489a7c502509e1ed4ca48d8cd6296;hp=562ef15cb862dd0eedf70ffa9f0d8a3b5edde29e;hpb=f64efc67a081bb9013f5939ec9e4ca514cd94d0f;p=ltt-control.git diff --git a/trunk/ltt-control/lttctl/ltt-armall.sh b/trunk/ltt-control/lttctl/ltt-armall.sh index 562ef15..ae6867d 100755 --- a/trunk/ltt-control/lttctl/ltt-armall.sh +++ b/trunk/ltt-control/lttctl/ltt-armall.sh @@ -2,7 +2,7 @@ #excluding locking markers (high traffic) echo Connecting all markers -MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_` +MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_|grep -v ^lockdep_` for a in $MARKERS; do echo Connecting $a @@ -28,3 +28,25 @@ for a in $MARKERS; do echo "connect $a default dynamic $CHANNEL" > /proc/ltt 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 ^tap_` + +#Uncomment the following to also record lockdep events. +#MARKERS=`cat /proc/ltt | grep -e ^tap_ -e ^lockdep` + +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 dynamic $CHANNEL" > /proc/ltt +done