Lines Matching full:check
33 if (CHECK(!skel, "skel_open", "skeleton open failed\n")) in test_mmap()
37 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_mmap()
43 if (CHECK(err != 0, "bpf_map__set_max_entries", "bpf_map__set_max_entries failed\n")) in test_mmap()
47 if (CHECK(err != 0, "skel_load", "skeleton load failed\n")) in test_mmap()
56 if (CHECK(tmp1 != MAP_FAILED, "rdonly_write_mmap", "unexpected success\n")) { in test_mmap()
60 /* now double-check if it's mmap()'able at all */ in test_mmap()
62 if (CHECK(tmp1 == MAP_FAILED, "rdonly_read_mmap", "failed: %d\n", errno)) in test_mmap()
68 if (CHECK(err, "map_get_info", "failed %d\n", errno)) in test_mmap()
75 if (CHECK(bss_mmaped == MAP_FAILED, "bss_mmap", in test_mmap()
83 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap()
102 if (CHECK(err, "attach_raw_tp", "err %d\n", err)) in test_mmap()
131 if (CHECK(!err || errno != EBUSY, "no_freeze", in test_mmap()
136 if (CHECK(err, "mprotect_ro", "mprotect to r/o failed %d\n", errno)) in test_mmap()
142 if (CHECK(err, "data_map_munmap", "data_map munmap failed: %d\n", errno)) in test_mmap()
147 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap()
153 if (CHECK(!err, "mprotect_wr", "mprotect() succeeded unexpectedly!\n")) in test_mmap()
156 if (CHECK(!err, "mprotect_ex", "mprotect() succeeded unexpectedly!\n")) in test_mmap()
175 if (CHECK(err, "freeze", "data_map freeze failed: err=%d, errno=%d\n", in test_mmap()
182 if (CHECK(tmp1 != MAP_FAILED, "data_mmap", "mmap succeeded\n")) { in test_mmap()
198 /* check some more advanced mmap() manipulations */ in test_mmap()
202 if (CHECK(tmp0 == MAP_FAILED, "adv_mmap0", "errno %d\n", errno)) in test_mmap()
208 if (CHECK(tmp0 != tmp1, "adv_mmap1", "tmp0: %p, tmp1: %p\n", tmp0, tmp1)) { in test_mmap()
215 if (CHECK(err, "adv_mmap2", "errno %d\n", errno)) { in test_mmap()
223 if (CHECK(tmp2 == MAP_FAILED, "adv_mmap3", "errno %d\n", errno)) { in test_mmap()
228 CHECK(tmp1 + page_size != tmp2, "adv_mmap4", in test_mmap()
234 if (CHECK(tmp2 == MAP_FAILED, "adv_mmap5", "errno %d\n", errno)) { in test_mmap()
238 CHECK(tmp1 != tmp2, "adv_mmap6", "tmp1: %p, tmp2: %p\n", tmp1, tmp2); in test_mmap()
255 if (CHECK(tmp1 != MAP_FAILED, "adv_mmap7", "unexpected success")) { in test_mmap()
261 if (CHECK(tmp1 == MAP_FAILED, "last_mmap", "failed %d\n", errno)) in test_mmap()
273 if (CHECK(tmp_fd < 0, "get_map_by_id", "failed %d\n", errno)) { in test_mmap()
292 if (CHECK(tmp_fd >= 0, "get_map_by_id_after", in test_mmap()