diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-07 22:36:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-08 03:51:39 -0500 |
commit | c76f06945be50564f925799ddfb6235ee4c26aa0 (patch) | |
tree | 941aaf84dd36096d7fb013f1e4be28bb8f2ac598 /kernel/trace/trace_functions.c | |
parent | bbf5b1a0cecb56de6236db8b01c5bfb7ab8ba8b2 (diff) |
ftrace: remove trace array ctrl
Impact: remove obsolete variable in trace_array structure
With the new start / stop method of ftrace, the ctrl variable
in the trace_array structure is now obsolete. Remove it.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r-- | kernel/trace/trace_functions.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index e980b872bef5..8693b7a0a5b2 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c | |||
@@ -44,14 +44,12 @@ static void stop_function_trace(struct trace_array *tr) | |||
44 | 44 | ||
45 | static void function_trace_init(struct trace_array *tr) | 45 | static void function_trace_init(struct trace_array *tr) |
46 | { | 46 | { |
47 | if (tr->ctrl) | 47 | start_function_trace(tr); |
48 | start_function_trace(tr); | ||
49 | } | 48 | } |
50 | 49 | ||
51 | static void function_trace_reset(struct trace_array *tr) | 50 | static void function_trace_reset(struct trace_array *tr) |
52 | { | 51 | { |
53 | if (tr->ctrl) | 52 | stop_function_trace(tr); |
54 | stop_function_trace(tr); | ||
55 | } | 53 | } |
56 | 54 | ||
57 | static void function_trace_start(struct trace_array *tr) | 55 | static void function_trace_start(struct trace_array *tr) |