Home
last modified time | relevance | path

Searched refs:expect_load_error (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dverifier_log.c36 static int load_prog(struct bpf_prog_load_opts *opts, bool expect_load_error) in load_prog() argument
42 check_prog_load(prog_fd, expect_load_error, "prog_load"); in load_prog()
47 static void verif_log_subtest(const char *name, bool expect_load_error, int log_level) in verif_log_subtest() argument
69 if (!expect_load_error && !ASSERT_OK(err, "unexpected_load_failure")) in verif_log_subtest()
71 if (expect_load_error && !ASSERT_ERR(err, "unexpected_load_success")) in verif_log_subtest()
80 load_prog(&opts, expect_load_error); in verif_log_subtest()
99 if (log_level >= 2 || expect_load_error) { in verif_log_subtest()
182 res = load_prog(&opts, expect_load_error); in verif_log_subtest()
193 res = load_prog(&opts, expect_load_error); in verif_log_subtest()
202 res = load_prog(&opts, expect_load_error); in verif_log_subtest()
[all …]