add tags
[ltt-control.git] / tags / ltt-control-0.51-12082008 / lttctl / ltt-disarmall.sh
diff --git a/tags/ltt-control-0.51-12082008/lttctl/ltt-disarmall.sh b/tags/ltt-control-0.51-12082008/lttctl/ltt-disarmall.sh
new file mode 100755 (executable)
index 0000000..4a3f92e
--- /dev/null
@@ -0,0 +1,19 @@
+#excluding locking
+#excluding core markers, not connected to default.
+echo Disconnecting all markers
+MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_|grep -v ^lockdep_|grep -v ^lockdep|grep -v ^tap_`
+for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done
+
+
+# Markers starting with "tap_" are considered high-speed.
+echo Disconnecting high-rate markers from tap
+MARKERS=`cat /proc/ltt | grep ^tap_`
+
+#Uncomment the following to also stop recording lockdep events.
+#MARKERS=`cat /proc/ltt | grep -e ^tap_ -e ^lockdep`
+
+for a in $MARKERS; do
+       echo Disconnecting $a
+
+       echo "disconnect $a ltt_tap_marker" > /proc/ltt
+done
This page took 0.02783 seconds and 4 git commands to generate.