summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/ftrace/test.d/functions
blob: 5d8cd06d920f606c0dd5128105fcbdc3a4f00552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}