Lines Matching refs:progs
30 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in serial_test_tc_links_basic()
31 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in serial_test_tc_links_basic()
41 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in serial_test_tc_links_basic()
76 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in serial_test_tc_links_basic()
130 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_before_target()
132 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_before_target()
134 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_before_target()
136 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_before_target()
143 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_before_target()
144 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_before_target()
145 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_before_target()
146 pid4 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_links_before_target()
154 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_before_target()
164 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_before_target()
204 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_before_target()
207 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_before_target()
220 link = bpf_program__attach_tcx(skel->progs.tc4, loopback, &optl); in test_tc_links_before_target()
284 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_after_target()
286 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_after_target()
288 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_after_target()
290 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_after_target()
297 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_after_target()
298 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_after_target()
299 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_after_target()
300 pid4 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_links_after_target()
308 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_after_target()
318 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_after_target()
358 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_after_target()
361 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_after_target()
374 link = bpf_program__attach_tcx(skel->progs.tc4, loopback, &optl); in test_tc_links_after_target()
437 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_revision_target()
439 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_revision_target()
446 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_revision_target()
447 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_revision_target()
455 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_revision_target()
467 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_revision_target()
477 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_revision_target()
538 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_chain_classic()
540 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_chain_classic()
547 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_chain_classic()
548 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_chain_classic()
549 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_chain_classic()
566 tc_opts.prog_fd = bpf_program__fd(skel->progs.tc3); in test_tc_chain_classic()
573 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_chain_classic()
579 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_chain_classic()
643 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_replace_target()
645 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_replace_target()
647 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_replace_target()
654 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_replace_target()
655 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_replace_target()
656 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_replace_target()
665 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_replace_target()
681 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_replace_target()
720 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_replace_target()
724 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_replace_target()
738 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_replace_target()
751 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_replace_target()
759 err = bpf_link__update_program(skel->links.tc2, skel->progs.tc3); in test_tc_links_replace_target()
817 err = bpf_link__update_program(skel->links.tc1, skel->progs.tc1); in test_tc_links_replace_target()
868 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_invalid_target()
870 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_invalid_target()
877 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_invalid_target()
878 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_invalid_target()
886 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
898 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
910 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
922 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
932 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_invalid_target()
935 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
947 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
956 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_invalid_target()
959 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
969 .relative_fd = bpf_program__fd(skel->progs.tc2), in test_tc_links_invalid_target()
972 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
982 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
985 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
998 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1011 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1021 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1024 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1034 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1037 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1047 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1050 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1060 link = bpf_program__attach_tcx(skel->progs.tc1, 0, &optl); in test_tc_links_invalid_target()
1070 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1073 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1083 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1095 .relative_fd = bpf_program__fd(skel->progs.tc1), in test_tc_links_invalid_target()
1098 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_invalid_target()
1111 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_invalid_target()
1124 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1137 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_invalid_target()
1149 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_invalid_target()
1182 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_prepend_target()
1184 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_prepend_target()
1186 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_prepend_target()
1188 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_prepend_target()
1195 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_prepend_target()
1196 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_prepend_target()
1197 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_prepend_target()
1198 pid4 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_links_prepend_target()
1206 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_prepend_target()
1220 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_prepend_target()
1262 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_prepend_target()
1274 link = bpf_program__attach_tcx(skel->progs.tc4, loopback, &optl); in test_tc_links_prepend_target()
1338 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_append_target()
1340 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_append_target()
1342 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_append_target()
1344 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_append_target()
1351 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_append_target()
1352 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_append_target()
1353 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_append_target()
1354 pid4 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_links_append_target()
1362 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_append_target()
1376 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_append_target()
1418 link = bpf_program__attach_tcx(skel->progs.tc3, loopback, &optl); in test_tc_links_append_target()
1430 link = bpf_program__attach_tcx(skel->progs.tc4, loopback, &optl); in test_tc_links_append_target()
1496 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_dev_cleanup_target()
1498 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_dev_cleanup_target()
1500 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_dev_cleanup_target()
1502 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_dev_cleanup_target()
1509 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_dev_cleanup_target()
1510 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_dev_cleanup_target()
1511 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_dev_cleanup_target()
1512 pid4 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_links_dev_cleanup_target()
1520 link = bpf_program__attach_tcx(skel->progs.tc1, ifindex, &optl); in test_tc_links_dev_cleanup_target()
1528 link = bpf_program__attach_tcx(skel->progs.tc2, ifindex, &optl); in test_tc_links_dev_cleanup_target()
1536 link = bpf_program__attach_tcx(skel->progs.tc3, ifindex, &optl); in test_tc_links_dev_cleanup_target()
1544 link = bpf_program__attach_tcx(skel->progs.tc4, ifindex, &optl); in test_tc_links_dev_cleanup_target()
1591 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_chain_mixed()
1593 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc5, target), in test_tc_chain_mixed()
1595 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc6, target), in test_tc_chain_mixed()
1602 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_chain_mixed()
1603 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc5)); in test_tc_chain_mixed()
1604 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc6)); in test_tc_chain_mixed()
1618 tc_opts.prog_fd = bpf_program__fd(skel->progs.tc5); in test_tc_chain_mixed()
1623 link = bpf_program__attach_tcx(skel->progs.tc6, loopback, &optl); in test_tc_chain_mixed()
1638 err = bpf_link__update_program(skel->links.tc6, skel->progs.tc4); in test_tc_chain_mixed()
1704 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_ingress()
1706 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_ingress()
1713 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_ingress()
1714 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_ingress()
1715 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_ingress()
1726 tc_opts.prog_fd = bpf_program__fd(skel->progs.tc3); in test_tc_links_ingress()
1733 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in test_tc_links_ingress()
1739 link = bpf_program__attach_tcx(skel->progs.tc2, loopback, &optl); in test_tc_links_ingress()
1869 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc1, target), in test_tc_links_dev_mixed()
1871 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc2, target), in test_tc_links_dev_mixed()
1873 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc3, target), in test_tc_links_dev_mixed()
1875 ASSERT_EQ(bpf_program__set_expected_attach_type(skel->progs.tc4, target), in test_tc_links_dev_mixed()
1882 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in test_tc_links_dev_mixed()
1883 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in test_tc_links_dev_mixed()
1884 pid3 = id_from_prog_fd(bpf_program__fd(skel->progs.tc3)); in test_tc_links_dev_mixed()
1885 pid4 = id_from_prog_fd(bpf_program__fd(skel->progs.tc4)); in test_tc_links_dev_mixed()
1893 link = bpf_program__attach_tcx(skel->progs.tc1, ifindex, &optl); in test_tc_links_dev_mixed()
1901 link = bpf_program__attach_tcx(skel->progs.tc2, ifindex, &optl); in test_tc_links_dev_mixed()
1909 link = bpf_program__attach_tcx(skel->progs.tc3, ifindex, &optl); in test_tc_links_dev_mixed()
1917 link = bpf_program__attach_tcx(skel->progs.tc4, ifindex, &optl); in test_tc_links_dev_mixed()
1934 tc_opts.prog_fd = bpf_program__fd(skel->progs.tc5); in test_tc_links_dev_mixed()