diff options
Diffstat (limited to 'kernel/tools/testing/selftests/ftrace/test.d/functions')
-rw-r--r-- | kernel/tools/testing/selftests/ftrace/test.d/functions | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/tools/testing/selftests/ftrace/test.d/functions b/kernel/tools/testing/selftests/ftrace/test.d/functions new file mode 100644 index 000000000..5d8cd06d9 --- /dev/null +++ b/kernel/tools/testing/selftests/ftrace/test.d/functions @@ -0,0 +1,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 +} |