OSDN Git Service

samples/bpf: Stop using bpf_object__find_program_by_title API.
authorKui-Feng Lee <kuifeng@fb.com>
Tue, 14 Dec 2021 03:59:29 +0000 (19:59 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Dec 2021 22:38:05 +0000 (14:38 -0800)
commit7490d59268168adf16aa319b007986778080d367
treeb3d96586275d75df30671364126147ee9fbc5dfb
parenta393ea80a22a9beffdc9a527bd2f9f270e7a0c6e
samples/bpf: Stop using bpf_object__find_program_by_title API.

bpf_object__find_program_by_title is going to be deprecated.
Replace use cases of bpf_object__find_program_by_title in samples/bpf/
with bpf_object__for_each_program.

Signed-off-by: Kui-Feng Lee <kuifeng@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211214035931.1148209-3-kuifeng@fb.com
samples/bpf/hbm.c
samples/bpf/xdp_fwd_user.c