[RFC PATCH 3/4 v2] ftracetest: Add helper reset_tracer() function

From: Steven Rostedt
Date: Mon Nov 03 2014 - 16:29:45 EST


From: "Steven Rostedt (Red Hat)" <rostedt@xxxxxxxxxxx>

Add a helper function reset_tracer() that will clear the current_tracer
(echo nop > current_tracer).

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/