diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-09-30 15:45:22 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-09-30 19:22:57 (GMT) |
commit | 2d34f48955158cfdf18704256c84b04fe3a16c7b (patch) | |
tree | 625e3b31654e1bd70123db75b279c9fc2cb598ff /kernel/trace/trace_events.c | |
parent | 9a38a8856f41f90cc7e57798c544e3fe77033196 (diff) | |
download | linux-2d34f48955158cfdf18704256c84b04fe3a16c7b.tar.xz |
tracing: Make ftrace_trace_stack() depend on general trace_array flag
In preparation for the multi buffer instances to have their own trace_flags,
the check in ftrace_trace_stack() needs to test the trace_array descriptor
flag that is for the current event, not the global_trace descriptor.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 0f39411..57c9e70 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -2941,15 +2941,15 @@ static struct ftrace_ops trace_ops __initdata = static __init void event_trace_self_test_with_function(void) { int ret; + event_tr = top_trace_array(); + if (WARN_ON(!event_tr)) + return; ret = register_ftrace_function(&trace_ops); if (WARN_ON(ret < 0)) { pr_info("Failed to enable function tracer for event tests\n"); return; } pr_info("Running tests again, along with the function tracer\n"); - event_tr = top_trace_array(); - if (WARN_ON(!event_tr)) - return; event_trace_self_tests(); unregister_ftrace_function(&trace_ops); } |