[tip:tracing/ftrace] tracing: keep the tracing buffer after self-test failure
From: Frederic Weisbecker
Date: Sun Mar 22 2009 - 10:20:58 EST
Commit-ID: 0cf53ff62b3e9e491ff5e5f05b193fb6ce643047
Gitweb: http://git.kernel.org/tip/0cf53ff62b3e9e491ff5e5f05b193fb6ce643047
Author: Frederic Weisbecker <fweisbec@xxxxxxxxx>
AuthorDate: Sun, 22 Mar 2009 15:13:07 +0100
Committer: Ingo Molnar <mingo@xxxxxxx>
CommitDate: Sun, 22 Mar 2009 15:17:21 +0100
tracing: keep the tracing buffer after self-test failure
Instead of using ftrace_dump_on_oops, it's far more convenient
to have the trace leading up to a self-test failure available
in /debug/tracing/trace.
Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
LKML-Reference: <1237694675-23509-1-git-send-email-fweisbec@xxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
kernel/trace/trace_selftest.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index b56dcf7..08f4eb2 100644
--- a/kernel/trace/trace_selftest.c
+++ b/kernel/trace/trace_selftest.c
@@ -299,7 +299,7 @@ trace_selftest_startup_function_graph(struct tracer *trace,
/* Have we just recovered from a hang? */
if (graph_hang_thresh > GRAPH_MAX_FUNC_TEST) {
- trace->reset(tr);
+ tracing_selftest_disabled = true;
ret = -1;
goto out;
}
--
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/