add tags
[ltt-control.git] / tags / ltt-control-0.51-12082008 / lttctl / ltt-armall.sh
diff --git a/tags/ltt-control-0.51-12082008/lttctl/ltt-armall.sh b/tags/ltt-control-0.51-12082008/lttctl/ltt-armall.sh
new file mode 100755 (executable)
index 0000000..ae6867d
--- /dev/null
@@ -0,0 +1,52 @@
+#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_|grep -v ^lockdep_`
+
+for a in $MARKERS; do
+       echo Connecting $a
+
+       #redirect markers carrying state information to dedicated channels
+       case $a in
+       list_process_state|user_generic_thread_brand|fs_exec|kernel_process_fork|kernel_process_free|kernel_process_exit|kernel_arch_kthread_create|list_statedump_end|list_vm_map)
+               CHANNEL=processes
+               ;;
+       list_interrupt|statedump_idt_table|statedump_sys_call_table)
+               CHANNEL=interrupts
+               ;;
+       list_network_ipv4_interface|list_network_ip_interface)
+               CHANNEL=network
+               ;;
+       kernel_module_load|kernel_module_free)
+               CHANNEL=modules
+               ;;
+       *)
+               CHANNEL=
+               ;;
+       esac
+
+       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
This page took 0.029541 seconds and 4 git commands to generate.