Re: [PATCH bpf-next v2 07/20] bpf: create file bpf iterator

2020-05-05 Thread Andrii Nakryiko
On Sun, May 3, 2020 at 11:26 PM Yonghong Song wrote: > > To produce a file bpf iterator, the fd must be > corresponding to a link_fd assocciated with a > trace/iter program. When the pinned file is > opened, a seq_file will be generated. > > Signed-off-by: Yonghong Song > --- LGTM. Acked-by: An

[PATCH bpf-next v2 07/20] bpf: create file bpf iterator

2020-05-03 Thread Yonghong Song
To produce a file bpf iterator, the fd must be corresponding to a link_fd assocciated with a trace/iter program. When the pinned file is opened, a seq_file will be generated. Signed-off-by: Yonghong Song --- include/linux/bpf.h | 2 ++ kernel/bpf/bpf_iter.c | 17 - kernel/bpf/