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

Steven Rostedt rostedt at goodmis.org
Tue Feb 22 08:05:47 PST 2022


On Tue, 22 Feb 2022 15:54:44 +0000
Mark Rutland <mark.rutland at arm.com> 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



More information about the linux-arm-kernel mailing list