Lines Matching refs:topts
89 LIBBPF_OPTS(bpf_test_run_opts, topts); in verify_success()
100 topts.ctx_in = &args; in verify_success()
101 topts.ctx_size_in = sizeof(args); in verify_success()
106 topts.data_in = &pkt_v4; in verify_success()
107 topts.data_size_in = sizeof(pkt_v4); in verify_success()
108 topts.repeat = 1; in verify_success()
122 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_success()
126 if (!ASSERT_EQ(topts.retval, param->retval, "retval")) in verify_success()
137 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_success()
141 ASSERT_EQ(topts.retval, param->retval, "retval"); in verify_success()
152 LIBBPF_OPTS(bpf_test_run_opts, topts); in verify_fail()
166 topts.ctx_in = &args; in verify_fail()
167 topts.ctx_size_in = sizeof(args); in verify_fail()
172 topts.data_in = &pkt_v4; in verify_fail()
173 topts.data_size_in = sizeof(pkt_v4); in verify_fail()
175 topts.repeat = 1; in verify_fail()
200 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_fail()
234 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_subprog()
245 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_subprog()
247 ASSERT_EQ(topts.retval, 10, "test1-retval"); in test_subprog()
258 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_subprog_lskel()
269 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_subprog_lskel()
271 ASSERT_EQ(topts.retval, 10, "test1-retval"); in test_subprog_lskel()