AM_CFLAGS = -DPACKAGE_DATA_DIR=\""$(datadir)"\" -DPACKAGE_BIN_DIR=\""$(bindir)"\"
bin_PROGRAMS = lttctl
-bin_SCRIPTS = ltt-armall ltt-disarmall ltt-armalluser ltt-disarmalluser
+bin_SCRIPTS = ltt-armall ltt-disarmall ltt-armalluser ltt-disarmalluser \
+ ltt-armtap ltt-disarmtap
CLEANFILES = $(bin_SCRIPTS)
-EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh ltt-armalluser.sh ltt-disarmalluser.sh
+EXTRA_DIST = ltt-armall.sh ltt-disarmall.sh \
+ ltt-armalluser.sh ltt-disarmalluser.sh \
+ ltt-armtap.sh ltt-disarmtap.sh
ltt-armall: ltt-armall.sh
rm -f ltt-armall
cat $(srcdir)/ltt-disarmall.sh >> ltt-disarmall
chmod ugo+x ltt-disarmall
+ltt-armtap: ltt-armtap.sh
+ rm -f ltt-armtap
+ echo "#!"$(BASH) > ltt-armtap
+ cat $(srcdir)/ltt-armtap.sh >> ltt-armtap
+ chmod ugo+x ltt-armtap
+
+ltt-disarmtap: ltt-disarmtap.sh
+ rm -f ltt-disarmtap
+ echo "#!"$(BASH) > ltt-disarmtap
+ cat $(srcdir)/ltt-disarmtap.sh >> ltt-disarmtap
+ chmod ugo+x ltt-disarmtap
+
ltt-armalluser: ltt-armalluser.sh
rm -f ltt-armalluser
echo "#!"$(BASH) > ltt-armalluser
#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_`
+MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_|grep -v ^lockdep_`
for a in $MARKERS; do
echo Connecting $a
echo "connect $a default dynamic $CHANNEL" > /proc/ltt
done
+
+
+# Connect the interesting high-speed markers to the marker tap.
+# Markers starting with "tap_" are considered high-speed.
+echo Connecting high-rate markers to tap
+MARKERS=`cat /proc/ltt | grep ^tap_`
+
+#Uncomment the following to also record lockdep events.
+#MARKERS=`cat /proc/ltt | grep -e ^tap_ -e ^lockdep`
+
+for a in $MARKERS; do
+ echo Connecting $a
+
+ #redirect markers carrying state information to dedicated channels
+ case $a in
+ *)
+ CHANNEL=
+ ;;
+ esac
+
+ echo "connect $a ltt_tap_marker dynamic $CHANNEL" > /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_`
+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