update newline fix
[ltt-control.git] / trunk / ltt-control / lttctl / ltt-disarmall.sh
CommitLineData
3c037c17 1#excluding locking
2#excluding core markers, not connected to default.
3echo Disconnecting all markers
43519792 4MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u|grep -v ^metadata|grep -v ^locking|grep -v ^lockdep|grep -v ^tap`
5
d81c1217 6#separator is newline, ensure compatibility with bash and ash
7IFS=$'\r'
3c037c17 8for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done
024405bd 9
024405bd 10# Markers starting with "tap_" are considered high-speed.
ae4aa497 11echo Disconnecting high-rate markers to tap
43519792 12MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u |grep ^tap`
024405bd 13
14#Uncomment the following to also stop recording lockdep events.
ae4aa497 15#MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
024405bd 16
d81c1217 17#separator is newline, ensure compatibility with bash and ash
18IFS=$'\r'
024405bd 19for a in $MARKERS; do
20 echo Disconnecting $a
21
22 echo "disconnect $a ltt_tap_marker" > /proc/ltt
23done
This page took 0.023492 seconds and 4 git commands to generate.