Message ID | 20210107041801.2003241-4-songliubraving@fb.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | introduce bpf_iter for task_vma | expand |
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 6ae748f6ea118..12ad4593a91cb 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -8541,6 +8541,11 @@ static const struct bpf_sec_def section_defs[] = { .expected_attach_type = BPF_TRACE_ITER, .is_attach_btf = true, .attach_fn = attach_iter), + SEC_DEF("iter.s/", TRACING, + .expected_attach_type = BPF_TRACE_ITER, + .is_attach_btf = true, + .is_sleepable = true, + .attach_fn = attach_iter), BPF_EAPROG_SEC("xdp_devmap/", BPF_PROG_TYPE_XDP, BPF_XDP_DEVMAP), BPF_EAPROG_SEC("xdp_cpumap/", BPF_PROG_TYPE_XDP,