Re: [PATCH] arm64/ftrace: Make function graph use ftrace directly

From: Steven Rostedt
Date: Tue Feb 22 2022 - 11:05:55 EST


On Tue, 22 Feb 2022 15:54:44 +0000
Mark Rutland <mark.rutland@xxxxxxx> wrote:

> > #ifdef CONFIG_DYNAMIC_FTRACE
> > +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS
> > +int ftrace_enable_ftrace_graph_caller(void)
> > +{
> > + return 0;
> > +}
> > +
> > +int ftrace_disable_ftrace_graph_caller(void)
> > +{
> > + return 0;
> > +}
>
> It's a shame the core code doesn't provide this if we provide an
> implementation of ftrace_graph_func.

As it was only x86_64 that took it out, I wasn't about to remove it. But
now other archs are implementing it, I'm fine with making these weak
functions in the core code.

-- Steve