On Sat, 29 Jun 2019 23:51:09 -0700, Andrii Nakryiko wrote:
> Switch event_pipe implementation to rely on new libbpf perf buffer API
> (it's raw low-level variant).
> 
> Signed-off-by: Andrii Nakryiko <andr...@fb.com>

> -int do_event_pipe(int argc, char **argv)
> -{
> -     int i, nfds, map_fd, index = -1, cpu = -1;
>       struct bpf_map_info map_info = {};
> -     struct event_ring_info *rings;
> -     size_t tmp_buf_sz = 0;
> -     void *tmp_buf = NULL;
> -     struct pollfd *pfds;
> +     struct perf_buffer_raw_opts opts;

I'm slightly worried we don't init the ops, but we can wait and see if
it bites us or not.

Acked-by: Jakub Kicinski <jakub.kicin...@netronome.com>

Thanks!

Reply via email to