selftests/bpf: Migrate from bpf_prog_test_run_xattr
authorDelyan Kratunov <delyank@fb.com>
Wed, 2 Feb 2022 23:54:21 +0000 (15:54 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Feb 2022 06:31:18 +0000 (22:31 -0800)
commit3931618378451f7ae884b14e4120e07560875cab
treefac0cb8e372432a36a23d931b0ccb4646c899db7
parent04fcb5f9a104f24278ad849c642cbdf0c8f48453
selftests/bpf: Migrate from bpf_prog_test_run_xattr

bpf_prog_test_run_xattr is being deprecated in favor of the OPTS-based
bpf_prog_test_run_opts.
We end up unable to use CHECK_ATTR so replace usages with ASSERT_* calls.
Also, prog_run_xattr is now prog_run_opts.

Signed-off-by: Delyan Kratunov <delyank@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220202235423.1097270-3-delyank@fb.com
14 files changed:
tools/testing/selftests/bpf/prog_tests/check_mtu.c
tools/testing/selftests/bpf/prog_tests/cls_redirect.c
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
tools/testing/selftests/bpf/prog_tests/kfree_skb.c
tools/testing/selftests/bpf/prog_tests/prog_run_opts.c [new file with mode: 0644]
tools/testing/selftests/bpf/prog_tests/prog_run_xattr.c [deleted file]
tools/testing/selftests/bpf/prog_tests/raw_tp_test_run.c
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
tools/testing/selftests/bpf/prog_tests/skb_helpers.c
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
tools/testing/selftests/bpf/prog_tests/syscall.c
tools/testing/selftests/bpf/prog_tests/test_profiler.c
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c