X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-control%2Flttctl%2Fltt-armall.sh;h=562ef15cb862dd0eedf70ffa9f0d8a3b5edde29e;hb=b7898ea36bca61bf37cc682ba5a92bc27189e8d5;hp=86a85cd06b5065e3f0b956b94ac19edd887344ce;hpb=2c9dfe1b8344ee64d571557919f89cf4010f22d7;p=ltt-control.git diff --git a/ltt-control/lttctl/ltt-armall.sh b/ltt-control/lttctl/ltt-armall.sh index 86a85cd..562ef15 100755 --- a/ltt-control/lttctl/ltt-armall.sh +++ b/ltt-control/lttctl/ltt-armall.sh @@ -1,14 +1,30 @@ #excluding core markers (already connected) #excluding locking markers (high traffic) -#scheduler probe -echo Loading probes -modprobe -q ltt-sched - 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_` +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 Connecting internal_kernel_sched_schedule -echo "connect internal_kernel_sched_schedule scheduler" > /proc/ltt + #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 -for a in $MARKERS; do echo Connecting $a; echo "connect $a default" > /proc/ltt; done + echo "connect $a default dynamic $CHANNEL" > /proc/ltt +done