From: Steven Rostedt Date: Fri, 11 Jul 2008 00:58:14 +0000 (-0400) Subject: ftrace: use current CPU for function startup X-Git-Tag: v2.6.27-rc1~1102^2^2^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=26bc83f4cb911a0b4dabfe23b700aaf3235f2955;p=linux-2.6-omap-h63xx.git 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 Cc: Steven Rostedt Cc: Peter Zijlstra Cc: Andrew Morton Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index 7ee7dcd76b7..31214489797 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) static void start_function_trace(struct trace_array *tr) { + tr->cpu = get_cpu(); function_reset(tr); + put_cpu(); + tracing_start_cmdline_record(); tracing_start_function_trace(); }