26 lines
501 B
Plaintext
26 lines
501 B
Plaintext
|
|
||
|
clear_trace() { # reset trace output
|
||
|
echo > trace
|
||
|
}
|
||
|
|
||
|
disable_tracing() { # stop trace recording
|
||
|
echo 0 > tracing_on
|
||
|
}
|
||
|
|
||
|
enable_tracing() { # start trace recording
|
||
|
echo 1 > tracing_on
|
||
|
}
|
||
|
|
||
|
reset_tracer() { # reset the current tracer
|
||
|
echo nop > current_tracer
|
||
|
}
|
||
|
|
||
|
reset_trigger() { # reset all current setting triggers
|
||
|
grep -v ^# events/*/*/trigger |
|
||
|
while read line; do
|
||
|
cmd=`echo $line | cut -f2- -d: | cut -f1 -d" "`
|
||
|
echo "!$cmd" > `echo $line | cut -f1 -d:`
|
||
|
done
|
||
|
}
|
||
|
|