Re: [PATCH bpf-next] bpf: Add bpf_read_raw_record() helper

From: Namhyung Kim
Date: Thu Aug 25 2022 - 12:58:10 EST


On Tue, Aug 23, 2022 at 10:32 PM John Fastabend
<john.fastabend@xxxxxxxxx> wrote:
> Namhyung Kim wrote:
> > Ok, now I think that I can use a bpf-output sw event. It would need
> > another BPF program to write data to the event and the test program
> > can read it from BPF using this helper. :)
>
> Ah good idea. Feel free to carry my ACK to the v2 with the test.

Hmm.. it seems not to work because
1. bpf_output sw event doesn't have the overflow mechanism and it
doesn't call the bpf program.
2. even if I added it, it couldn't run due to the recursion protection by
bpf_prog_active.

Thanks,
Namhyung