OSDN Git Service

samples/bpf: Get rid of deprecated libbpf API uses
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Dec 2021 23:28:23 +0000 (15:28 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 2 Dec 2021 23:23:40 +0000 (15:23 -0800)
commitc58f9815ba9735752d3735efb915e8878604684b
tree4af974bfbf16a9cf5739729d06f4621f5eccb927
parent527024f7aeb683ce7ef49b07ef7ce9ecf015288d
samples/bpf: Get rid of deprecated libbpf API uses

Replace deprecated APIs with new ones. Also mute source code using
deprecated AF_XDP (xsk.h). Figuring out what to do with all the AF_XDP
stuff is a separate problem that should be solved with its own set of
changes.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211201232824.3166325-9-andrii@kernel.org
15 files changed:
samples/bpf/cookie_uid_helper_example.c
samples/bpf/fds_example.c
samples/bpf/map_perf_test_user.c
samples/bpf/sock_example.c
samples/bpf/sockex1_user.c
samples/bpf/sockex2_user.c
samples/bpf/test_cgrp2_array_pin.c
samples/bpf/test_cgrp2_attach.c
samples/bpf/test_cgrp2_sock.c
samples/bpf/test_lru_dist.c
samples/bpf/trace_output_user.c
samples/bpf/xdp_sample_pkts_user.c
samples/bpf/xdpsock_ctrl_proc.c
samples/bpf/xdpsock_user.c
samples/bpf/xsk_fwd.c