diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-11-03 15:08:45 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-07 08:34:24 -0800 |
commit | f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288 (patch) | |
tree | a164f26f57eba6af07aa06c3777390e32c3b666c /tools/testing/selftests/bpf/test_cgroup_storage.c | |
parent | cbdb1461dcf45765a036e9f6975ffe19e69bdc33 (diff) | |
download | linux-stable-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.tar.gz linux-stable-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.tar.bz2 linux-stable-f19ddfe0360a1aa64db0b4a41f59e1ade3f6d288.zip |
selftests/bpf: Use explicit bpf_test_load_program() helper calls
Remove the second part of prog loading testing helper re-definition:
-Dbpf_load_program=bpf_test_load_program
This completes the clean up of deprecated libbpf program loading APIs.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/bpf/20211103220845.2676888-13-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/test_cgroup_storage.c')
-rw-r--r-- | tools/testing/selftests/bpf/test_cgroup_storage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_cgroup_storage.c b/tools/testing/selftests/bpf/test_cgroup_storage.c index 0cda61da5d39..a63787e7bb1a 100644 --- a/tools/testing/selftests/bpf/test_cgroup_storage.c +++ b/tools/testing/selftests/bpf/test_cgroup_storage.c @@ -8,6 +8,7 @@ #include "bpf_rlimit.h" #include "cgroup_helpers.h" +#include "testing_helpers.h" char bpf_log_buf[BPF_LOG_BUF_SIZE]; @@ -66,7 +67,7 @@ int main(int argc, char **argv) prog[0].imm = percpu_map_fd; prog[7].imm = map_fd; - prog_fd = bpf_load_program(BPF_PROG_TYPE_CGROUP_SKB, + prog_fd = bpf_test_load_program(BPF_PROG_TYPE_CGROUP_SKB, prog, insns_cnt, "GPL", 0, bpf_log_buf, BPF_LOG_BUF_SIZE); if (prog_fd < 0) { |