X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=trunk%2Fltt-control%2Flttctl%2Fltt-armall.sh;h=f0824c819eebab7a9656b2ebf69714a10b5b46c1;hb=80bb28069a50aeccd34e3c383fb22af5b71f9867;hp=562ef15cb862dd0eedf70ffa9f0d8a3b5edde29e;hpb=f64efc67a081bb9013f5939ec9e4ca514cd94d0f;p=ltt-control.git diff --git a/trunk/ltt-control/lttctl/ltt-armall.sh b/trunk/ltt-control/lttctl/ltt-armall.sh index 562ef15..f0824c8 100755 --- a/trunk/ltt-control/lttctl/ltt-armall.sh +++ b/trunk/ltt-control/lttctl/ltt-armall.sh @@ -1,30 +1,47 @@ #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_` +DEBUGFSROOT=$(grep ^debugfs /proc/mounts | head -1 | awk '{print $2}') +MARKERSROOT=${DEBUGFSROOT}/ltt/markers -for a in $MARKERS; do - echo Connecting $a +echo Connecting all markers - #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 +for c in ${MARKERSROOT}/*; do + case ${c} in + ${MARKERSROOT}/metadata) ;; - list_network_ipv4_interface|list_network_ip_interface) - CHANNEL=network + ${MARKERSROOT}/locking) ;; - kernel_module_load|kernel_module_free) - CHANNEL=modules + ${MARKERSROOT}/lockdep) ;; *) - CHANNEL= + for m in ${c}/*; do + echo Connecting ${m} + echo 1 > ${m}/enable + done ;; 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 -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