Re: [PATCH bpf-next v3 02/21] bpf: allow loading of a bpf_iter program

2020-05-08 Thread Andrii Nakryiko
On Wed, May 6, 2020 at 10:40 PM Yonghong Song wrote: > > A bpf_iter program is a tracing program with attach type > BPF_TRACE_ITER. The load attribute > attach_btf_id > is used by the verifier against a particular kernel function, > which represents a target, e.g., __bpf_iter__bpf_map > for targ

[PATCH bpf-next v3 02/21] bpf: allow loading of a bpf_iter program

2020-05-06 Thread Yonghong Song
A bpf_iter program is a tracing program with attach type BPF_TRACE_ITER. The load attribute attach_btf_id is used by the verifier against a particular kernel function, which represents a target, e.g., __bpf_iter__bpf_map for target bpf_map which is implemented later. The program return value mus