Re: [PATCH 5/5][RESEND] tracing/function-graph-tracer: drop thekernel_text_address check

From: Ingo Molnar
Date: Mon Feb 09 2009 - 04:54:31 EST



* Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:

> When the function graph tracer picks a return address, it ensures this address
> is really a kernel text one by calling __kernel_text_address()
> Actually this path has never been taken. Its role was more likely to debug the tracer
> on the beginning of its development but this function is wasteful since it is called
> for every traced function.
>
> The fault check is already sufficient.
>
> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
> Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> ---
> arch/x86/kernel/ftrace.c | 7 -------
> kernel/extable.c | 4 ++--
> kernel/module.c | 2 +-
> 3 files changed, 3 insertions(+), 10 deletions(-)

Applied to tip/tracing/ftrace, thanks Frederic!

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