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