Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> writes: > Introduce a libbpf API so that users can read data from a given BPF > stream for a BPF prog fd. For now, only the low-level syscall wrapper > is provided, we can add a bpf_program__* accessor as a follow up if > needed. > > Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...] > +int bpf_prog_stream_read(int prog_fd, __u32 stream_id, void *stream_buf, __u32 stream_buf_len) Note: many of such utility functions have _opts parameter for future extensibility. Imo in this case it would hinder usability a bit. If need be bpf_prog_stream_read_opts can be added later. [...]