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

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

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

2020-05-05 Thread Andrii Nakryiko
On Sun, May 3, 2020 at 11:26 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 v2 02/20] bpf: allow loading of a bpf_iter program

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