AM_CFLAGS = -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\"
bin_PROGRAMS = lttctl
+bin_SCRIPTS = ltt-armall ltt-disarmall
+CLEANFILES = $(bin_SCRIPTS)
+EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh
+
+ltt-armall: ltt-armall.sh
+ rm -f ltt-armall
+ echo "#!"$(BASH) > ltt-armall
+ cat $(srcdir)/ltt-armall.sh >> ltt-armall
+ chmod ugo+x ltt-armall
+
+ltt-disarmall: ltt-disarmall.sh
+ rm -f ltt-disarmall
+ echo "#!"$(BASH) > ltt-disarmall
+ cat $(srcdir)/ltt-disarmall.sh >> ltt-disarmall
+ chmod ugo+x ltt-disarmall
lttctl_SOURCES = \
lttctl.c
--- /dev/null
+#excluding core markers (already connected)
+#excluding locking markers (high traffic)
+echo Connecting all markers
+MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_`
+for a in $MARKERS; do echo Connecting $a; echo "connect $a default" > /proc/ltt > /proc/ltt; done
+
+#excluding locking markers (high traffic)
+#core markers must be armed
+echo Arming all markers
+MARKERS=`cat /proc/ltt|awk '{print $2}'|sort -u|grep -v ^locking_`
+for a in $MARKERS; do echo Arming $a; echo "arm $a" > /proc/ltt; done
--- /dev/null
+#excluding locking
+echo Disarming all markers
+MARKERS=`cat /proc/ltt|awk '{print $2}'|sort -u|grep -v ^locking_`
+for a in $MARKERS; do echo Disarming $a; echo "disarm $a" > /proc/ltt; done
+
+#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_`
+for a in $MARKERS; do echo Disconnecting $a; echo "disconnect $a" > /proc/ltt; done