Re: [PATCH 1/2] tracing/ftrace: don't trace on early stage ofsecondary cpu boot

From: Steven Rostedt
Date: Tue Dec 23 2008 - 22:12:09 EST



On Wed, 24 Dec 2008, Fr?d?ric Weisbecker wrote:
>
> One other solution, would be to define raw_smp_processor_id() to
> stack_smp_processor_id() and current to
> cpu_pda(stack_smp_processor_id()) if function_tracer is configured.
> That would even let one to trace those cpu boot
> functions.
>
> But the other side effect with this is that perhaps "current" would be
> retrieved with one pointer more to dereference....

Nah, I think that is a bit too intrusive. We really do not want to call
the function tracer if it can not handle a simple smp_processor_id() call.
You never know what else might turn up in this area.

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/