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.
4 #excluding core markers (already connected)
5 #excluding locking markers (high traffic)
7 echo Disconnecting
function markers
9 # interesting period starts with the list of events passed as parameter.
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...
17 STOP_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_`
19 for a
in $START_FTRACE; do
20 STOP_FTRACE
=`echo $STOP_FTRACE|sed 's/$a//'`
23 for a
in $START_FTRACE; do
24 echo Disconnecting start
$a
25 echo "disconnect $a ftrace_system_start" > /proc
/ltt
28 for a
in $STOP_FTRACE; do
29 echo Disconnecting stop
$a
30 echo "disconnect $a ftrace_system_stop" > /proc
/ltt
This page took 0.029578 seconds and 4 git commands to generate.