Skip to content

Commit

Permalink
tracing: keep the tracing buffer after self-test failure
Browse files Browse the repository at this point in the history
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@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1237694675-23509-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Mar 22, 2009
1 parent cf586b6 commit 0cf53ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0cf53ff

Please sign in to comment.