summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_selftest.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-03-22 15:13:07 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-22 15:17:21 +0100
commit0cf53ff62b3e9e491ff5e5f05b193fb6ce643047 (patch)
tree3a184041819aa922f3b7505fda803e649ee2786a /kernel/trace/trace_selftest.c
parentcf586b61f80229491127d3c57c06ed93c9f530d3 (diff)
downloadlinux-0cf53ff62b3e9e491ff5e5f05b193fb6ce643047.tar.bz2
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@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>
Diffstat (limited to 'kernel/trace/trace_selftest.c')
-rw-r--r--kernel/trace/trace_selftest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index b56dcf7d3566..08f4eb2763d1 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;
}