diff options
author | 2022-06-28 10:43:12 -0700 | |
---|---|---|
committer | 2022-06-29 13:21:52 -0700 | |
commit | a4b2f3cf699f8ec3964722e7ef3f37f809701172 (patch) | |
tree | 2ff347dbe5293957cfcce70ba882d543b24d039c /tools/testing/selftests/bpf/progs/bpf_tracing_net.h | |
parent | libbpf: add lsm_cgoup_sock type (diff) | |
download | wireguard-linux-a4b2f3cf699f8ec3964722e7ef3f37f809701172.tar.xz wireguard-linux-a4b2f3cf699f8ec3964722e7ef3f37f809701172.zip |
libbpf: implement bpf_prog_query_opts
Implement bpf_prog_query_opts as a more expendable version of
bpf_prog_query. Expose new prog_attach_flags and attach_btf_func_id as
well:
* prog_attach_flags is a per-program attach_type; relevant only for
lsm cgroup program which might have different attach_flags
per attach_btf_id
* attach_btf_func_id is a new field expose for prog_query which
specifies real btf function id for lsm cgroup attachments
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20220628174314.1216643-10-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_tracing_net.h')
0 files changed, 0 insertions, 0 deletions