send markers to correct channels
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 27 Feb 2008 13:41:02 +0000 (13:41 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 27 Feb 2008 13:41:02 +0000 (13:41 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2822 04897980-b3bd-0310-b5e0-8ef037075253

ltt-control/lttctl/ltt-armall.sh

index 86a85cd06b5065e3f0b956b94ac19edd887344ce..3cb5f253f73906a3fb6217f592a3c922320c3c90 100755 (executable)
@@ -11,4 +11,27 @@ MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -
 echo Connecting internal_kernel_sched_schedule
 echo "connect internal_kernel_sched_schedule scheduler" > /proc/ltt
 
-for a in $MARKERS; do echo Connecting $a; echo "connect $a default" > /proc/ltt; done
+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
This page took 0.023545 seconds and 4 git commands to generate.