1
2clear_trace() { # reset trace output
3    echo > trace
4}
5
6disable_tracing() { # stop trace recording
7    echo 0 > tracing_on
8}
9
10enable_tracing() { # start trace recording
11    echo 1 > tracing_on
12}
13
14reset_tracer() { # reset the current tracer
15    echo nop > current_tracer
16}
17
18reset_trigger() { # reset all current setting triggers
19    grep -v ^# events/*/*/trigger |
20    while read line; do
21        cmd=`echo $line | cut -f2- -d: | cut -f1 -d" "`
22	echo "!$cmd" > `echo $line | cut -f1 -d:`
23    done
24}
25
26