From: "Steven Rostedt (Red Hat)" Add a helper function reset_tracer() that will clear the current_tracer (echo nop > current_tracer). Signed-off-by: Steven Rostedt --- tools/testing/selftests/ftrace/test.d/functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/functions b/tools/testing/selftests/ftrace/test.d/functions index c5bf630e9be8..5d8cd06d920f 100644 --- a/tools/testing/selftests/ftrace/test.d/functions +++ b/tools/testing/selftests/ftrace/test.d/functions @@ -10,3 +10,7 @@ disable_tracing() { # stop trace recording enable_tracing() { # start trace recording echo 1 > tracing_on } + +reset_tracer() { # reset the current tracer + echo nop > current_tracer +} -- 2.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/