aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/btf.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-10-06 17:58:34 +0000
committerAndrii Nakryiko <[email protected]>2021-10-06 19:34:03 +0000
commit0e545dbaa2797133f57bf8387e8f74cd245cedea (patch)
treed6b57e0ba51373477c58bea70ec99e43e553913e /tools/testing/selftests/bpf/prog_tests/btf.c
parentlibbpf: Deprecate bpf_object__unload() API since v0.6 (diff)
parentselftests/bpf: Switch to new bpf_object__next_{map,program} APIs (diff)
downloadkernel-0e545dbaa2797133f57bf8387e8f74cd245cedea.tar.gz
kernel-0e545dbaa2797133f57bf8387e8f74cd245cedea.zip
Merge branch 'libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7'
Hengqi Chen says: ==================== bpf_{map,program}__{prev,next} don't follow the libbpf API naming convention. Deprecate them and replace them with a new set of APIs named bpf_object__{prev,next}_{program,map}. v1->v2: [0] * Addressed Andrii's comments [0]: https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/ ==================== Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/btf.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/btf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/btf.c b/tools/testing/selftests/bpf/prog_tests/btf.c
index 9c85d7d27409..acd33d0cd5d9 100644
--- a/tools/testing/selftests/bpf/prog_tests/btf.c
+++ b/tools/testing/selftests/bpf/prog_tests/btf.c
@@ -4511,7 +4511,7 @@ static void do_test_file(unsigned int test_num)
if (CHECK(err, "obj: %d", err))
return;
- prog = bpf_program__next(NULL, obj);
+ prog = bpf_object__next_program(obj, NULL);
if (CHECK(!prog, "Cannot find bpf_prog")) {
err = -1;
goto done;