Add lttctl support for switch_timer
[ltt-control.git] / lttctl / ltt-armtap.sh
CommitLineData
6a62174b 1# This script will enable the system-wide tap on the given list of events passed
2# as parameter, and stop the tap at each other "normal rate" events.
3
4#excluding core markers (already connected)
5#excluding locking markers (high traffic)
6
7echo Connecting function markers
8
9# interesting period starts with the list of events passed as parameter.
10START_FTRACE=$*
11
12# interesting period may stop with one specific event, but also try to keep the
13# other START_FTRACE events triggers to the lowest possible overhead by stopping
14# function trace at every other events.
15# Do _not_ disable function tracing in ftrace_entry event unless you really only
16# want the first function entry...
17STOP_FTRACE=`cat /proc/ltt|grep -v %k|awk '{print $2}'|sort -u|grep -v ^core_|grep -v ^locking_|grep -v ^lockdep|grep -v ftrace_entry|grep -v ^tap_`
18
19for a in $START_FTRACE; do
20 STOP_FTRACE=`echo $STOP_FTRACE|sed 's/$a//'`
21done
22
23
24for a in $STOP_FTRACE; do
25 echo Connecting stop $a
26 echo "connect $a ftrace_system_stop" > /proc/ltt
27done
28
29for a in $START_FTRACE; do
30 echo Connecting start $a
31 echo "connect $a ftrace_system_start" > /proc/ltt
32done
33
34
This page took 0.024176 seconds and 4 git commands to generate.