Lines Matching full:check

21 	if (CHECK(!skel1, "skel_load", "skeleton open and load failed\n"))  in test_xdp_link()
26 if (CHECK(!skel2, "skel_load", "skeleton open and load failed\n")) in test_xdp_link()
32 if (CHECK(err, "fd_info1", "failed %d\n", -errno)) in test_xdp_link()
38 if (CHECK(err, "fd_info2", "failed %d\n", -errno)) in test_xdp_link()
44 if (CHECK(err, "fd_attach", "initial prog attach failed: %d\n", err)) in test_xdp_link()
49 CHECK(err || id0 != id1, "id1_check", in test_xdp_link()
54 if (CHECK(!IS_ERR(link), "link_attach_fail", "unexpected success\n")) { in test_xdp_link()
65 if (CHECK(err, "prog_detach", "failed %d\n", err)) in test_xdp_link()
70 if (CHECK(IS_ERR(link), "link_attach", "failed: %ld\n", PTR_ERR(link))) in test_xdp_link()
76 if (CHECK(err || id0 != id1, "id1_check", in test_xdp_link()
83 if (CHECK(!err, "prog_attach_fail", "unexpected success\n")) in test_xdp_link()
88 if (CHECK(!err, "prog_update_fail", "unexpected success\n")) in test_xdp_link()
93 if (CHECK(!err, "prog_detach_fail", "unexpected success\n")) in test_xdp_link()
98 if (CHECK(!IS_ERR(link), "link_attach_fail", "unexpected success\n")) { in test_xdp_link()
108 if (CHECK(IS_ERR(link), "link_attach", "failed: %ld\n", PTR_ERR(link))) in test_xdp_link()
113 if (CHECK(err || id0 != id2, "id2_check", in test_xdp_link()
119 if (CHECK(err, "link_upd", "failed: %d\n", err)) in test_xdp_link()
124 if (CHECK(err, "link_info", "failed: %d\n", err)) in test_xdp_link()
127 CHECK(link_info.type != BPF_LINK_TYPE_XDP, "link_type", in test_xdp_link()
129 CHECK(link_info.prog_id != id1, "link_prog_id", in test_xdp_link()
131 CHECK(link_info.xdp.ifindex != IFINDEX_LO, "link_ifindex", in test_xdp_link()
135 if (CHECK(err, "link_detach", "failed %d\n", err)) in test_xdp_link()
140 if (CHECK(err, "link_info", "failed: %d\n", err)) in test_xdp_link()
142 CHECK(link_info.prog_id != id1, "link_prog_id", in test_xdp_link()
145 CHECK(link_info.xdp.ifindex != 0, "link_ifindex", in test_xdp_link()