Re: [PATCH bpf-next v2 06/20] bpf: create anonymous bpf iterator

2020-05-05 Thread Yonghong Song
On 5/5/20 1:11 PM, Andrii Nakryiko wrote: On Sun, May 3, 2020 at 11:29 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 spa

Re: [PATCH bpf-next v2 06/20] bpf: create anonymous bpf iterator

2020-05-05 Thread Andrii Nakryiko
On Sun, May 3, 2020 at 11:29 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 v2 06/20] bpf: create anonymous bpf iterator

2020-05-03 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