fix lttd append
[ltt-control.git] / tags / ltt-control-0.51-12082008 / lttctl / ltt-disarmtap.sh
CommitLineData
366ebe80 1# This script will disable the system-wide tap on the given list of events
2# passed 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 Disconnecting 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
23for a in $START_FTRACE; do
24 echo Disconnecting start $a
25 echo "disconnect $a ftrace_system_start" > /proc/ltt
26done
27
28for a in $STOP_FTRACE; do
29 echo Disconnecting stop $a
30 echo "disconnect $a ftrace_system_stop" > /proc/ltt
31done
32
33
This page took 0.023396 seconds and 4 git commands to generate.