Re: [RFC] ftrace: Add support to keep some functions out of ftrace

Alexei Starovoitov
2022-07-22T16:55:06Z

On Fri, Jul 22, 2022 at 9:37 AM Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Fri, 22 Jul 2022 18:26:09 +0200
> Jiri Olsa <olsajiri@gmail.com> wrote:
>
> > > So, why not mark it as notrace? That will prevent ftrace from looking at it.
> >
> > there's still needs to be the instrument jump generated
> > in order to use bpf_arch_text_poke on that
>
> Can you explain the background on this. Why is bpf doing text_poke on
> function entries? What was the direct use case for?

It's a bpf specific dispatcher.
Like static_call but more dynamic and for bpf progs.