summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/helpers.c
diff options
context:
space:
mode:
authorDave Marchevsky <davemarchevsky@fb.com>2021-09-17 20:29:04 +0200
committerAlexei Starovoitov <ast@kernel.org>2021-09-17 23:02:05 +0200
commit84b4c52960bdccd86d6c3c42a730fd8d0ab75427 (patch)
treec27527eb0fc8c2131dc23b80e382c5b34d492f55 /kernel/bpf/helpers.c
parentbpf: Merge printk and seq_printf VARARG max macros (diff)
downloadlinux-84b4c52960bdccd86d6c3c42a730fd8d0ab75427.tar.xz
linux-84b4c52960bdccd86d6c3c42a730fd8d0ab75427.zip
selftests/bpf: Stop using bpf_program__load
bpf_program__load is not supposed to be used directly. Replace it with bpf_object__ APIs for the reference_tracking prog_test, which is the last offender in bpf selftests. Some additional complexity is added for this test, namely the use of one bpf_object to iterate through progs, while a second bpf_object is created and opened/closed to test actual loading of progs. This is because the test was doing bpf_program__load then __unload to test loading of individual progs and same semantics with bpf_object__load/__unload result in failure to load an __unload-ed obj. Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210917182911.2426606-3-davemarchevsky@fb.com
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions