diff options
author | Jiri Olsa <jolsa@kernel.org> | 2023-05-15 16:37:52 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-05-17 08:09:23 +0300 |
commit | 11642eb92b3bc67171b23abff0d062758c5a4730 (patch) | |
tree | 9aef5deba7795d822b2a4c7ead65e896a58d4758 /tools/testing/selftests/bpf/testing_helpers.h | |
parent | b58f3f0e6f3cbea56be39d8fb190b37f049505bb (diff) | |
download | linux-11642eb92b3bc67171b23abff0d062758c5a4730.tar.xz |
selftests/bpf: Use un/load_bpf_testmod functions in tests
Now that we have un/load_bpf_testmod helpers in testing_helpers.h,
we can use it in other tests and save some lines.
Acked-by: David Vernet <void@manifault.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230515133756.1658301-7-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/testing_helpers.h')
-rw-r--r-- | tools/testing/selftests/bpf/testing_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/testing_helpers.h b/tools/testing/selftests/bpf/testing_helpers.h index 02e8c4efd028..5312323881b6 100644 --- a/tools/testing/selftests/bpf/testing_helpers.h +++ b/tools/testing/selftests/bpf/testing_helpers.h @@ -30,7 +30,7 @@ int parse_test_list_file(const char *path, __u64 read_perf_max_sample_freq(void); int load_bpf_testmod(bool verbose); -void unload_bpf_testmod(bool verbose); +int unload_bpf_testmod(bool verbose); int kern_sync_rcu(void); #endif /* __TESTING_HELPERS_H */ |