Re: [PATCH bpf-next v3 06/21] bpf: create anonymous bpf iterator

2020-05-08 Thread Andrii Nakryiko
On Wed, May 6, 2020 at 10:39 PM Yonghong Song wrote: > > A new bpf command BPF_ITER_CREATE is added. > > The anonymous bpf iterator is seq_file based. > The seq_file private data are referenced by targets. > The bpf_iter infrastructure allocated additional space > at seq_file->private before the s

[PATCH bpf-next v3 06/21] bpf: create anonymous bpf iterator

2020-05-06 Thread Yonghong Song
A new bpf command BPF_ITER_CREATE is added. The anonymous bpf iterator is seq_file based. The seq_file private data are referenced by targets. The bpf_iter infrastructure allocated additional space at seq_file->private before the space used by targets to store some meta data, e.g., prog: p