Re: [PATCH] Add function graph tracer support for ARM (resend)

From: Jamie Lokier
Date: Thu Apr 23 2009 - 15:17:26 EST


Tim Bird wrote:
> The use of "already_here" works around trace entry nesting
> (I believe due to instrumentation of either cpu_clock or
> raw_smp_processor_id). Advice on the best way to deal
> with this would be appreciated. (that is, whether
> to use the guard variable, or just un-instrument the
> offending routines).

I think it's better to keep functions instrumented where possible, if
checking for context isn't too expensive. Sometimes it's interesting
to see how many times they are called.

But it's not much use instrumenting those functions if activity on a
different CPU suppresses it. Is there no way to make "already_here"
task/CPU specific?

What do other architectures do? Consistency is good.

-- Jamie
--
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/