diff options
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r-- | kernel/trace/trace_functions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index 0f85a64003d..9f1b0de7128 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c | |||
@@ -62,11 +62,17 @@ static void function_trace_ctrl_update(struct trace_array *tr) | |||
62 | stop_function_trace(tr); | 62 | stop_function_trace(tr); |
63 | } | 63 | } |
64 | 64 | ||
65 | static void function_trace_start(struct trace_array *tr) | ||
66 | { | ||
67 | function_reset(tr); | ||
68 | } | ||
69 | |||
65 | static struct tracer function_trace __read_mostly = | 70 | static struct tracer function_trace __read_mostly = |
66 | { | 71 | { |
67 | .name = "function", | 72 | .name = "function", |
68 | .init = function_trace_init, | 73 | .init = function_trace_init, |
69 | .reset = function_trace_reset, | 74 | .reset = function_trace_reset, |
75 | .start = function_trace_start, | ||
70 | .ctrl_update = function_trace_ctrl_update, | 76 | .ctrl_update = function_trace_ctrl_update, |
71 | #ifdef CONFIG_FTRACE_SELFTEST | 77 | #ifdef CONFIG_FTRACE_SELFTEST |
72 | .selftest = trace_selftest_startup_function, | 78 | .selftest = trace_selftest_startup_function, |