On Tue, Oct 15, 2019 at 6:01 AM Steven Rostedt <[email protected]> wrote:
> Would this work for you?

>  #define MCOUNT_REC()   . = ALIGN(8);                           \
>                         __start_mcount_loc = .;                 \
>                         KEEP(*(__patchable_function_entries))   \
> -                       __stop_mcount_loc = .;
> +                       __stop_mcount_loc = .;                  \
> +                       ftrace_graph_stub = ftrace_stub;

> +extern void ftrace_graph_stub(struct ftrace_graph_ret *);

Yes, it looks like the compiler is actually happy with this approach.
Thank you for the patch!

Sami

Reply via email to