aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2021-11-03 22:08:44 +0000
committerAlexei Starovoitov <[email protected]>2021-11-07 16:34:23 +0000
commitcbdb1461dcf45765a036e9f6975ffe19e69bdc33 (patch)
tree826122e1a461694a54fbf27a68dc7aec64e94aa2 /tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
parentselftests/bpf: Merge test_stub.c into testing_helpers.c (diff)
downloadkernel-cbdb1461dcf45765a036e9f6975ffe19e69bdc33.tar.gz
kernel-cbdb1461dcf45765a036e9f6975ffe19e69bdc33.zip
selftests/bpf: Use explicit bpf_prog_test_load() calls everywhere
-Dbpf_prog_load_deprecated=bpf_prog_test_load trick is both ugly and breaks when deprecation goes into effect due to macro magic. Convert all the uses to explicit bpf_prog_test_load() calls which avoid deprecation errors and makes everything less magical. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Dave Marchevsky <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/stacktrace_map.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/stacktrace_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/stacktrace_map.c b/tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
index 04b476bd62b9..337493d74ec5 100644
--- a/tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
+++ b/tools/testing/selftests/bpf/prog_tests/stacktrace_map.c
@@ -12,7 +12,7 @@ void test_stacktrace_map(void)
struct bpf_object *obj;
struct bpf_link *link;
- err = bpf_prog_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd);
+ err = bpf_prog_test_load(file, BPF_PROG_TYPE_TRACEPOINT, &obj, &prog_fd);
if (CHECK(err, "prog_load", "err %d errno %d\n", err, errno))
return;