Re: [PATCH 2/2] ftrace/x86/extable: Add is_ftrace_trampoline() function

From: Steven Rostedt
Date: Wed Nov 19 2014 - 10:37:48 EST


On Wed, 19 Nov 2014 17:16:55 +0900
Namhyung Kim <namhyung@xxxxxxxxxx> wrote:

>
> [SNIP]
> > @@ -102,6 +103,8 @@ int __kernel_text_address(unsigned long addr)
> > return 1;
> > if (is_module_text_address(addr))
> > return 1;
> > + if (is_ftrace_trampoline(addr))
> > + return 1;
>
> What about kernel_text_address()? It seems some archs like ARM use it
> instead of __kernel_text_address() although trampoline is only enabled
> on x86 for now.

Here's the new patch: