1 #excluding core markers (already connected)
2 #excluding locking markers (high traffic)
4 DEBUGFSROOT
=$
(grep ^debugfs
/proc
/mounts |
head -1 |
awk '{print $2}')
5 MARKERSROOT
=${DEBUGFSROOT}/ltt
/markers
7 echo Disconnecting all markers
9 for c
in ${MARKERSROOT}/*; do
11 ${MARKERSROOT}/metadata
)
13 ${MARKERSROOT}/locking
)
15 ${MARKERSROOT}/lockdep
)
19 echo Disconnecting
${m}
26 ## Markers starting with "tap_" are considered high-speed.
27 #echo Disconnecting high-rate markers to tap
28 #MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u |grep ^tap`
30 ##Uncomment the following to also stop recording lockdep events.
31 ##MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
34 #for a in $MARKERS; do
35 # echo Disconnecting $a
37 # echo "disconnect $a ltt_tap_marker" > /proc/ltt