update lttctl
[ltt-control.git] / trunk / ltt-control / lttctl / ltt-armall.sh
CommitLineData
3c037c17 1#excluding core markers (already connected)
2#excluding locking markers (high traffic)
c6bcebb0 3
3c037c17 4echo Connecting all markers
43519792 5MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2 " " $4}'|sort -u|grep -v ^metadata|grep -v ^locking|grep -v ^lockdep`
c6bcebb0 6
43519792 7IFS=$'\n'
98e12fa1 8for a in $MARKERS; do
9 echo Connecting $a
10
43519792 11 echo "connect $a default" > /proc/ltt
12# #redirect markers carrying state information to dedicated channels
13# case $a in
14# list_process_state|list_file_descriptor|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)
15# CHANNEL=processes
16# ;;
17# list_interrupt|statedump_idt_table|statedump_sys_call_table|statedump_softirq_vec)
18# CHANNEL=interrupts
19# ;;
20# list_network_ipv4_interface|list_network_ip_interface)
21# CHANNEL=network
22# ;;
23# list_module|kernel_module_load|kernel_module_free)
24# CHANNEL=modules
25# ;;
26# *)
27# CHANNEL=
28# ;;
29# esac
98e12fa1 30
98e12fa1 31done
024405bd 32
33
34# Connect the interesting high-speed markers to the marker tap.
35# Markers starting with "tap_" are considered high-speed.
36echo Connecting high-rate markers to tap
ae4aa497 37MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_`
024405bd 38
39#Uncomment the following to also record lockdep events.
ae4aa497 40#MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
024405bd 41
42for a in $MARKERS; do
43 echo Connecting $a
44
45 #redirect markers carrying state information to dedicated channels
46 case $a in
47 *)
48 CHANNEL=
49 ;;
50 esac
51
43519792 52 echo "connect $a ltt_tap_marker" > /proc/ltt
024405bd 53done
This page took 0.025156 seconds and 4 git commands to generate.