Lines Matching refs:prog_ids
20 __u32 prog_ids[2]; in serial_test_tc_opts_basic() local
48 optq.prog_ids = prog_ids; in serial_test_tc_opts_basic()
50 memset(prog_ids, 0, sizeof(prog_ids)); in serial_test_tc_opts_basic()
51 optq.count = ARRAY_SIZE(prog_ids); in serial_test_tc_opts_basic()
59 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in serial_test_tc_opts_basic()
60 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in serial_test_tc_opts_basic()
75 memset(prog_ids, 0, sizeof(prog_ids)); in serial_test_tc_opts_basic()
76 optq.count = ARRAY_SIZE(prog_ids); in serial_test_tc_opts_basic()
84 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in serial_test_tc_opts_basic()
85 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in serial_test_tc_opts_basic()
118 __u32 prog_ids[5]; in test_tc_opts_before_target() local
153 optq.prog_ids = prog_ids; in test_tc_opts_before_target()
155 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_before_target()
156 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_before_target()
164 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_before_target()
165 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_before_target()
166 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_before_target()
185 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_before_target()
186 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_before_target()
194 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_before_target()
195 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_before_target()
196 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_before_target()
197 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_before_target()
210 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_before_target()
211 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_before_target()
219 ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]"); in test_tc_opts_before_target()
220 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_before_target()
221 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_before_target()
222 ASSERT_EQ(optq.prog_ids[3], id2, "prog_ids[3]"); in test_tc_opts_before_target()
223 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_before_target()
270 __u32 prog_ids[5]; in test_tc_opts_after_target() local
305 optq.prog_ids = prog_ids; in test_tc_opts_after_target()
307 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_after_target()
308 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_after_target()
316 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
317 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_after_target()
318 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_after_target()
337 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_after_target()
338 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_after_target()
346 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
347 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_after_target()
348 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_after_target()
349 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_after_target()
362 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_after_target()
363 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_after_target()
371 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
372 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_after_target()
373 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_after_target()
374 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_after_target()
375 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_after_target()
390 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_after_target()
391 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_after_target()
399 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
400 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_after_target()
401 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_after_target()
402 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_after_target()
409 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_after_target()
410 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_after_target()
418 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
419 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_after_target()
420 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_after_target()
427 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_after_target()
428 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_after_target()
436 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_after_target()
437 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_after_target()
461 __u32 prog_ids[3]; in test_tc_opts_revision_target() local
508 optq.prog_ids = prog_ids; in test_tc_opts_revision_target()
510 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_revision_target()
511 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_revision_target()
519 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_revision_target()
520 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_revision_target()
521 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_revision_target()
672 __u32 prog_ids[4], prog_flags[4]; in test_tc_opts_replace_target() local
718 optq.prog_ids = prog_ids; in test_tc_opts_replace_target()
721 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_replace_target()
722 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_replace_target()
730 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_replace_target()
731 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_replace_target()
732 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_replace_target()
759 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_replace_target()
760 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_replace_target()
768 ASSERT_EQ(optq.prog_ids[0], id3, "prog_ids[0]"); in test_tc_opts_replace_target()
769 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_replace_target()
770 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_replace_target()
794 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_replace_target()
795 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_replace_target()
803 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_replace_target()
804 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_replace_target()
805 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_replace_target()
1033 __u32 prog_ids[5]; in test_tc_opts_prepend_target() local
1072 optq.prog_ids = prog_ids; in test_tc_opts_prepend_target()
1074 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_prepend_target()
1075 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_prepend_target()
1083 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_prepend_target()
1084 ASSERT_EQ(optq.prog_ids[1], id1, "prog_ids[1]"); in test_tc_opts_prepend_target()
1085 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_prepend_target()
1113 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_prepend_target()
1114 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_prepend_target()
1122 ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]"); in test_tc_opts_prepend_target()
1123 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_prepend_target()
1124 ASSERT_EQ(optq.prog_ids[2], id2, "prog_ids[2]"); in test_tc_opts_prepend_target()
1125 ASSERT_EQ(optq.prog_ids[3], id1, "prog_ids[3]"); in test_tc_opts_prepend_target()
1126 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_prepend_target()
1173 __u32 prog_ids[5]; in test_tc_opts_append_target() local
1212 optq.prog_ids = prog_ids; in test_tc_opts_append_target()
1214 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_append_target()
1215 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_append_target()
1223 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_append_target()
1224 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_append_target()
1225 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_append_target()
1253 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_append_target()
1254 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_append_target()
1262 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_append_target()
1263 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_append_target()
1264 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_append_target()
1265 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_append_target()
1266 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_append_target()
1404 __u32 prog_ids[4], link_ids[4]; in test_tc_opts_mixed_target() local
1520 optq.prog_ids = prog_ids; in test_tc_opts_mixed_target()
1525 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_mixed_target()
1529 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_mixed_target()
1537 ASSERT_EQ(optq.prog_ids[0], pid3, "prog_ids[0]"); in test_tc_opts_mixed_target()
1541 ASSERT_EQ(optq.prog_ids[1], pid2, "prog_ids[1]"); in test_tc_opts_mixed_target()
1545 ASSERT_EQ(optq.prog_ids[2], pid4, "prog_ids[2]"); in test_tc_opts_mixed_target()
1549 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_mixed_target()
1658 __u32 prog_ids[5]; in test_tc_opts_detach_target() local
1705 optq.prog_ids = prog_ids; in test_tc_opts_detach_target()
1707 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_target()
1708 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_target()
1716 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_target()
1717 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_detach_target()
1718 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_detach_target()
1719 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_detach_target()
1720 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_detach_target()
1731 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_target()
1732 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_target()
1740 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_detach_target()
1741 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_target()
1742 ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]"); in test_tc_opts_detach_target()
1743 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_detach_target()
1754 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_target()
1755 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_target()
1763 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_detach_target()
1764 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_target()
1765 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_detach_target()
1829 __u32 prog_ids[5]; in test_tc_opts_detach_before_target() local
1876 optq.prog_ids = prog_ids; in test_tc_opts_detach_before_target()
1878 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_before_target()
1879 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_before_target()
1887 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1888 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_detach_before_target()
1889 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_detach_before_target()
1890 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_detach_before_target()
1891 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_detach_before_target()
1903 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_before_target()
1904 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_before_target()
1912 ASSERT_EQ(optq.prog_ids[0], id2, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1913 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_before_target()
1914 ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]"); in test_tc_opts_detach_before_target()
1915 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_detach_before_target()
1954 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_before_target()
1955 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_before_target()
1963 ASSERT_EQ(optq.prog_ids[0], id3, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1964 ASSERT_EQ(optq.prog_ids[1], id4, "prog_ids[1]"); in test_tc_opts_detach_before_target()
1965 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_detach_before_target()
1977 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_before_target()
1978 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_before_target()
1986 ASSERT_EQ(optq.prog_ids[0], id4, "prog_ids[0]"); in test_tc_opts_detach_before_target()
1987 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_detach_before_target()
2036 __u32 prog_ids[5]; in test_tc_opts_detach_after_target() local
2083 optq.prog_ids = prog_ids; in test_tc_opts_detach_after_target()
2085 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_after_target()
2086 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_after_target()
2094 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2095 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2096 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_detach_after_target()
2097 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_detach_after_target()
2098 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_detach_after_target()
2110 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_after_target()
2111 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_after_target()
2119 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2120 ASSERT_EQ(optq.prog_ids[1], id3, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2121 ASSERT_EQ(optq.prog_ids[2], id4, "prog_ids[2]"); in test_tc_opts_detach_after_target()
2122 ASSERT_EQ(optq.prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_detach_after_target()
2170 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_after_target()
2171 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_after_target()
2179 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2180 ASSERT_EQ(optq.prog_ids[1], id4, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2181 ASSERT_EQ(optq.prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_detach_after_target()
2193 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_detach_after_target()
2194 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_detach_after_target()
2202 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_detach_after_target()
2203 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_detach_after_target()
2470 __u32 prog_ids[10]; in test_tc_opts_query_target() local
2536 ASSERT_EQ(optq.prog_ids, NULL, "prog_ids"); in test_tc_opts_query_target()
2539 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_target()
2540 optq.prog_ids = prog_ids; in test_tc_opts_query_target()
2548 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2549 ASSERT_EQ(optq.prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2550 ASSERT_EQ(optq.prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_query_target()
2551 ASSERT_EQ(optq.prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_query_target()
2552 ASSERT_EQ(optq.prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2570 ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids"); in test_tc_opts_query_target()
2575 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_target()
2576 attr.query.prog_ids = ptr_to_u64(prog_ids); in test_tc_opts_query_target()
2588 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2589 ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2590 ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2591 ASSERT_EQ(prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_query_target()
2592 ASSERT_EQ(prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_query_target()
2593 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2603 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_target()
2604 attr.query.prog_ids = ptr_to_u64(prog_ids); in test_tc_opts_query_target()
2617 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2618 ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2619 ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2620 ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_query_target()
2621 ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_query_target()
2622 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2632 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_target()
2633 attr.query.prog_ids = ptr_to_u64(prog_ids); in test_tc_opts_query_target()
2646 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2647 ASSERT_EQ(prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_target()
2648 ASSERT_EQ(prog_ids[1], id2, "prog_ids[1]"); in test_tc_opts_query_target()
2649 ASSERT_EQ(prog_ids[2], id3, "prog_ids[2]"); in test_tc_opts_query_target()
2650 ASSERT_EQ(prog_ids[3], id4, "prog_ids[3]"); in test_tc_opts_query_target()
2651 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2661 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_target()
2662 attr.query.count = sizeof(prog_ids); in test_tc_opts_query_target()
2674 ASSERT_EQ(prog_ids[0], 0, "prog_ids[0]"); in test_tc_opts_query_target()
2675 ASSERT_EQ(prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_query_target()
2676 ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_query_target()
2677 ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_query_target()
2678 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2679 ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids"); in test_tc_opts_query_target()
2689 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_target()
2690 attr.query.prog_ids = ptr_to_u64(prog_ids); in test_tc_opts_query_target()
2702 ASSERT_EQ(prog_ids[0], 0, "prog_ids[0]"); in test_tc_opts_query_target()
2703 ASSERT_EQ(prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_query_target()
2704 ASSERT_EQ(prog_ids[2], 0, "prog_ids[2]"); in test_tc_opts_query_target()
2705 ASSERT_EQ(prog_ids[3], 0, "prog_ids[3]"); in test_tc_opts_query_target()
2706 ASSERT_EQ(prog_ids[4], 0, "prog_ids[4]"); in test_tc_opts_query_target()
2707 ASSERT_EQ(attr.query.prog_ids, ptr_to_u64(prog_ids), "prog_ids"); in test_tc_opts_query_target()
2763 __u32 prog_ids[2]; in test_tc_opts_query_attach_target() local
2789 memset(prog_ids, 0, sizeof(prog_ids)); in test_tc_opts_query_attach_target()
2790 optq.prog_ids = prog_ids; in test_tc_opts_query_attach_target()
2791 optq.count = ARRAY_SIZE(prog_ids); in test_tc_opts_query_attach_target()
2799 ASSERT_EQ(optq.prog_ids[0], id1, "prog_ids[0]"); in test_tc_opts_query_attach_target()
2800 ASSERT_EQ(optq.prog_ids[1], 0, "prog_ids[1]"); in test_tc_opts_query_attach_target()