Re: [RFC PATCH bpf-next 0/2] Priorities for bpf progs attached to the same tracepoint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux