convert from svn repository: remove tags directory
[lttv.git] / trunk / ltt-control / lttctl / ltt-disarmall.sh
CommitLineData
7980f12a 1#excluding core markers (already connected)
2#excluding locking markers (high traffic)
a2fe39fa 3
7980f12a 4DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}')
5MARKERSROOT=${DEBUGFSROOT}/ltt/markers
a2fe39fa 6
7980f12a 7echo Disconnecting all markers
a2fe39fa 8
7980f12a 9for c in ${MARKERSROOT}/*; do
10 case ${c} in
11 ${MARKERSROOT}/metadata)
12 ;;
13 ${MARKERSROOT}/locking)
14 ;;
15 ${MARKERSROOT}/lockdep)
16 ;;
17 *)
18 for m in ${c}/*; do
19 echo Disconnecting ${m}
20 echo 0 > ${m}/enable
21 done
22 ;;
23 esac
a2fe39fa 24done
7980f12a 25
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`
29#
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`
32#
33#IFS=${N}
34#for a in $MARKERS; do
35# echo Disconnecting $a
36#
37# echo "disconnect $a ltt_tap_marker" > /proc/ltt
38#done
This page took 0.026654 seconds and 4 git commands to generate.