cabe0d62 |
1 | #excluding locking |
2 | #excluding core markers, not connected to default. |
3 | echo Disconnecting all markers |
c90f6125 |
4 | MARKERS=`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 | |
68e70607 |
6 | |
5a2c8a57 |
7 | #separator is newline, ensure compatibility with bash and ash |
68e70607 |
8 | N=" |
9 | " |
10 | |
11 | IFS=${N} |
cabe0d62 |
12 | for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done |
a2fe39fa |
13 | |
a2fe39fa |
14 | # Markers starting with "tap_" are considered high-speed. |
2a2b8f21 |
15 | echo Disconnecting high-rate markers to tap |
c90f6125 |
16 | MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u |grep ^tap` |
a2fe39fa |
17 | |
18 | #Uncomment the following to also stop recording lockdep events. |
2a2b8f21 |
19 | #MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep` |
a2fe39fa |
20 | |
68e70607 |
21 | IFS=${N} |
a2fe39fa |
22 | for a in $MARKERS; do |
23 | echo Disconnecting $a |
24 | |
25 | echo "disconnect $a ltt_tap_marker" > /proc/ltt |
26 | done |