move everything out of trunk
[lttv.git] / ltt-control / lttctl / ltt-armall.sh
index 86a85cd06b5065e3f0b956b94ac19edd887344ce..f0824c819eebab7a9656b2ebf69714a10b5b46c1 100755 (executable)
@@ -1,14 +1,47 @@
 #excluding core markers (already connected)
 #excluding locking markers (high traffic)
 
-#scheduler probe
-echo Loading probes
-modprobe -q ltt-sched
+DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}')
+MARKERSROOT=${DEBUGFSROOT}/ltt/markers
 
 echo Connecting all markers
-MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_ |grep -v ^internal_`
 
-echo Connecting internal_kernel_sched_schedule
-echo "connect internal_kernel_sched_schedule scheduler" > /proc/ltt
+for c in ${MARKERSROOT}/*; do
+       case ${c} in
+       ${MARKERSROOT}/metadata)
+               ;;
+       ${MARKERSROOT}/locking)
+               ;;
+       ${MARKERSROOT}/lockdep)
+               ;;
+       *)
+               for m in ${c}/*; do
+                       echo Connecting ${m}
+                       echo 1 > ${m}/enable
+               done
+               ;;
+       esac
+done
 
-for a in $MARKERS; do echo Connecting $a; echo "connect $a default" > /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 -v %k|awk '{print $2}'|sort -u |grep ^tap_`
+#
+##Uncomment the following to also record lockdep events.
+##MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
+#
+#IFS=${N}
+#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" > /proc/ltt
+#done
This page took 0.023446 seconds and 4 git commands to generate.