Lines Matching refs:topts
93 LIBBPF_OPTS(bpf_test_run_opts, topts); in verify_success()
104 topts.ctx_in = &args; in verify_success()
105 topts.ctx_size_in = sizeof(args); in verify_success()
110 topts.data_in = &pkt_v4; in verify_success()
111 topts.data_size_in = sizeof(pkt_v4); in verify_success()
112 topts.repeat = 1; in verify_success()
126 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_success()
130 if (!ASSERT_EQ(topts.retval, param->retval, "retval")) in verify_success()
141 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_success()
145 ASSERT_EQ(topts.retval, param->retval, "retval"); in verify_success()
156 LIBBPF_OPTS(bpf_test_run_opts, topts); in verify_fail()
170 topts.ctx_in = &args; in verify_fail()
171 topts.ctx_size_in = sizeof(args); in verify_fail()
176 topts.data_in = &pkt_v4; in verify_fail()
177 topts.data_size_in = sizeof(pkt_v4); in verify_fail()
178 topts.repeat = 1; in verify_fail()
204 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_fail()
238 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_subprog()
249 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_subprog()
251 ASSERT_EQ(topts.retval, 10, "test1-retval"); in test_subprog()
262 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_subprog_lskel()
273 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_subprog_lskel()
275 ASSERT_EQ(topts.retval, 10, "test1-retval"); in test_subprog_lskel()