Subject: Re: [PATCHv2 RFC bpf-next 0/7] bpf: Add support for ftrace probe

From: Jiri Olsa <[email-masked]>
Date: Thu, 15 Apr 2021 23:49:43 +0200

On Thu, Apr 15, 2021 at 02:21:20PM -0400, Steven Rostedt wrote:
> On Thu, 15 Apr 2021 14:18:31 -0400
> Steven Rostedt <[email-masked]> wrote:
> 
> > My last release of that code is here:
> > 
> >   https://lore.kernel.org/lkml/[email-masked]/
> > 
> > It allows you to "reserve data" to pass from the caller to the return, and
> > that could hold the arguments. See patch 15 of that series.
> 
> Note that implementation only lets you save up to 4 words on the stack, but
> that can be changed. Or you could have a separate shadow stack for saving
> arguments, and only pass the pointer to the location on the other stack
> where those arguments are.

right, I quickly checked on that and it looks exactly like
the thing we need

I'll try to rebase that on the current code and try to use
it with the bpf ftrace probe to see how it fits

any chance you could plan on reposting it? ;-)

thanks,
jirka