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