> On Tue, Apr 05, 2022 at 10:20:17AM -0700, Alexei Starovoitov wrote: > > The immediate trigger for this idea was inconvenience we faced, trying > > to instrument one bpf prog with another. I guess the best practice in > > such case would be to attach to fentry/fexit of the target bpf prog, > > yes. that's a recommended way. > > > but > > from what I understand in this case there is no way to get information > > about tracepoint arguments the target prog has received. > > Not quite. fentry/fexit have access to the arguments of instrumented bpf prog. > See fexit_bpf2bpf.c > In case of tracepoint the fentry prog will see the same 'ctx' pointer as > bpf prog attached to a tp. Thanks for the clarification, I'll take a look at it.