Commit c5229a0b authored by Christophe Leroy's avatar Christophe Leroy Committed by Steven Rostedt (Google)
Browse files

tracing: Fix selftest config check for function graph start up test

parent 851e99eb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -784,9 +784,7 @@ static struct fgraph_ops fgraph_ops __initdata = {
	.retfunc		= &trace_graph_return,
};

#if defined(CONFIG_DYNAMIC_FTRACE) && \
    defined(CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS)
#define TEST_DIRECT_TRAMP
#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
noinline __noclone static void trace_direct_tramp(void) { }
#endif

@@ -849,7 +847,7 @@ trace_selftest_startup_function_graph(struct tracer *trace,
		goto out;
	}

#ifdef TEST_DIRECT_TRAMP
#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
	tracing_reset_online_cpus(&tr->array_buffer);
	set_graph_array(tr);