Lines Matching refs:topts
91 LIBBPF_OPTS(bpf_test_run_opts, topts); in verify_success()
102 topts.ctx_in = &args; in verify_success()
103 topts.ctx_size_in = sizeof(args); in verify_success()
108 topts.data_in = &pkt_v4; in verify_success()
109 topts.data_size_in = sizeof(pkt_v4); in verify_success()
110 topts.repeat = 1; in verify_success()
124 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_success()
128 if (!ASSERT_EQ(topts.retval, param->retval, "retval")) in verify_success()
139 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_success()
143 ASSERT_EQ(topts.retval, param->retval, "retval"); in verify_success()
154 LIBBPF_OPTS(bpf_test_run_opts, topts); in verify_fail()
168 topts.ctx_in = &args; in verify_fail()
169 topts.ctx_size_in = sizeof(args); in verify_fail()
174 topts.data_in = &pkt_v4; in verify_fail()
175 topts.data_size_in = sizeof(pkt_v4); in verify_fail()
176 topts.repeat = 1; in verify_fail()
202 err = bpf_prog_test_run_opts(prog_fd, &topts); in verify_fail()
236 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_subprog()
247 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_subprog()
249 ASSERT_EQ(topts.retval, 10, "test1-retval"); in test_subprog()
260 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_subprog_lskel()
271 err = bpf_prog_test_run_opts(prog_fd, &topts); in test_subprog_lskel()
273 ASSERT_EQ(topts.retval, 10, "test1-retval"); in test_subprog_lskel()