From: "Steven Rostedt (Red Hat)" Add calls that disable and enable tracing respectively by echoing 0 or 1 into tracing_on. Signed-off-by: Steven Rostedt --- tools/testing/selftests/ftrace/test.d/functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/testing/selftests/ftrace/test.d/functions b/tools/testing/selftests/ftrace/test.d/functions index 1aa9f2e9c40b..c5bf630e9be8 100644 --- a/tools/testing/selftests/ftrace/test.d/functions +++ b/tools/testing/selftests/ftrace/test.d/functions @@ -2,3 +2,11 @@ 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 +} -- 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/