update newline fix
[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
d81c1217 7#separator is newline, ensure compatibility with bash and ash
8IFS=$'\r'
98e12fa1 9for a in $MARKERS; do
10 echo Connecting $a
11
43519792 12 echo "connect $a default" > /proc/ltt
13# #redirect markers carrying state information to dedicated channels
14# case $a in
15# 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)
16# CHANNEL=processes
17# ;;
18# list_interrupt|statedump_idt_table|statedump_sys_call_table|statedump_softirq_vec)
19# CHANNEL=interrupts
20# ;;
21# list_network_ipv4_interface|list_network_ip_interface)
22# CHANNEL=network
23# ;;
24# list_module|kernel_module_load|kernel_module_free)
25# CHANNEL=modules
26# ;;
27# *)
28# CHANNEL=
29# ;;
30# esac
98e12fa1 31
98e12fa1 32done
024405bd 33
34
35# Connect the interesting high-speed markers to the marker tap.
36# Markers starting with "tap_" are considered high-speed.
37echo Connecting high-rate markers to tap
ae4aa497 38MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u |grep ^tap_`
024405bd 39
40#Uncomment the following to also record lockdep events.
ae4aa497 41#MARKERS=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -e ^tap_ -e ^lockdep`
024405bd 42
d81c1217 43#separator is newline, ensure compatibility with bash and ash
44IFS=$'\r'
024405bd 45for a in $MARKERS; do
46 echo Connecting $a
47
48 #redirect markers carrying state information to dedicated channels
49 case $a in
50 *)
51 CHANNEL=
52 ;;
53 esac
54
43519792 55 echo "connect $a ltt_tap_marker" > /proc/ltt
024405bd 56done
This page took 0.024482 seconds and 4 git commands to generate.