Lines Matching refs:topts
17 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_1()
61 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_1()
63 ASSERT_EQ(topts.retval, i, "tailcall retval"); in test_tailcall_1()
70 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_1()
72 ASSERT_EQ(topts.retval, 3, "tailcall retval"); in test_tailcall_1()
90 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_1()
92 ASSERT_OK(topts.retval, "tailcall retval"); in test_tailcall_1()
114 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_1()
116 ASSERT_EQ(topts.retval, j, "tailcall retval"); in test_tailcall_1()
123 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_1()
125 ASSERT_EQ(topts.retval, 3, "tailcall retval"); in test_tailcall_1()
132 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_1()
134 ASSERT_EQ(topts.retval, 3, "tailcall retval"); in test_tailcall_1()
153 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_2()
196 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_2()
198 ASSERT_EQ(topts.retval, 2, "tailcall retval"); in test_tailcall_2()
205 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_2()
207 ASSERT_EQ(topts.retval, 1, "tailcall retval"); in test_tailcall_2()
214 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_2()
216 ASSERT_EQ(topts.retval, 3, "tailcall retval"); in test_tailcall_2()
228 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_count()
268 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_count()
270 ASSERT_EQ(topts.retval, 1, "tailcall retval"); in test_tailcall_count()
290 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_count()
292 ASSERT_OK(topts.retval, "tailcall retval"); in test_tailcall_count()
326 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_4()
382 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_4()
384 ASSERT_EQ(topts.retval, i, "tailcall retval"); in test_tailcall_4()
396 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_4()
398 ASSERT_EQ(topts.retval, 3, "tailcall retval"); in test_tailcall_4()
416 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_5()
472 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_5()
474 ASSERT_EQ(topts.retval, i, "tailcall retval"); in test_tailcall_5()
486 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_5()
488 ASSERT_EQ(topts.retval, 3, "tailcall retval"); in test_tailcall_5()
504 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_bpf2bpf_1()
548 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_1()
550 ASSERT_EQ(topts.retval, 1, "tailcall retval"); in test_tailcall_bpf2bpf_1()
558 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_1()
560 ASSERT_OK(topts.retval, "tailcall retval"); in test_tailcall_bpf2bpf_1()
570 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_1()
572 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval"); in test_tailcall_bpf2bpf_1()
588 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_bpf2bpf_2()
628 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_2()
630 ASSERT_EQ(topts.retval, 1, "tailcall retval"); in test_tailcall_bpf2bpf_2()
650 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_2()
652 ASSERT_OK(topts.retval, "tailcall retval"); in test_tailcall_bpf2bpf_2()
668 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_bpf2bpf_3()
711 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_3()
713 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 3, "tailcall retval"); in test_tailcall_bpf2bpf_3()
720 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_3()
722 ASSERT_EQ(topts.retval, sizeof(pkt_v4), "tailcall retval"); in test_tailcall_bpf2bpf_3()
729 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_3()
731 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 2, "tailcall retval"); in test_tailcall_bpf2bpf_3()
763 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_bpf2bpf_4()
821 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_4()
823 ASSERT_EQ(topts.retval, sizeof(pkt_v4) * 3, "tailcall retval"); in test_tailcall_bpf2bpf_4()
843 LIBBPF_OPTS(bpf_test_run_opts, topts, in test_tailcall_bpf2bpf_6()
870 err = bpf_prog_test_run_opts(main_fd, &topts); in test_tailcall_bpf2bpf_6()
872 ASSERT_EQ(topts.retval, 0, "tailcall retval"); in test_tailcall_bpf2bpf_6()