diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-07-10 20:58:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-11 09:49:21 -0400 |
commit | 26bc83f4cb911a0b4dabfe23b700aaf3235f2955 (patch) | |
tree | d68f36b2373164af899678eada1922dbdbfbd13a /kernel | |
parent | ad591240ceadcaf41b2a88855ca5f1c77c5a0298 (diff) |
ftrace: use current CPU for function startup
This is more of a clean up. Currently the function tracer initializes the
tracer with which ever CPU was last used for tracing. This value isn't
realy useful for function tracing, but at least it should be something other
than a random number.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Steven Rostedt <srostedt@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index 7ee7dcd76b7d..312144897970 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c | |||
@@ -28,7 +28,10 @@ static void function_reset(struct trace_array *tr) | |||
28 | 28 | ||
29 | static void start_function_trace(struct trace_array *tr) | 29 | static void start_function_trace(struct trace_array *tr) |
30 | { | 30 | { |
31 | tr->cpu = get_cpu(); | ||
31 | function_reset(tr); | 32 | function_reset(tr); |
33 | put_cpu(); | ||
34 | |||
32 | tracing_start_cmdline_record(); | 35 | tracing_start_cmdline_record(); |
33 | tracing_start_function_trace(); | 36 | tracing_start_function_trace(); |
34 | } | 37 | } |