Lines Matching refs:CHECK

49 #define CHECK(condition, tag, format...) ({				\  macro
70 CHECK(reuseport_array == -1, "creating reuseport_array", in create_maps()
81 CHECK(outer_map == -1, "creating outer_map", in create_maps()
96 CHECK(IS_ERR_OR_NULL(obj), "open test_select_reuseport_kern.o", in prepare_bpf_obj()
100 CHECK(!prog, "get first bpf_program", "!prog\n"); in prepare_bpf_obj()
104 CHECK(!map, "find outer_map", "!map\n"); in prepare_bpf_obj()
106 CHECK(err, "reuse outer_map", "err:%d\n", err); in prepare_bpf_obj()
109 CHECK(err, "load bpf_object", "err:%d\n", err); in prepare_bpf_obj()
112 CHECK(select_by_skb_data_prog == -1, "get prog fd", in prepare_bpf_obj()
116 CHECK(!map, "find result_map", "!map\n"); in prepare_bpf_obj()
118 CHECK(result_map == -1, "get result_map fd", in prepare_bpf_obj()
122 CHECK(!map, "find tmp_index_ovr_map", "!map\n"); in prepare_bpf_obj()
124 CHECK(tmp_index_ovr_map == -1, "get tmp_index_ovr_map fd", in prepare_bpf_obj()
128 CHECK(!map, "find linum_map", "!map\n"); in prepare_bpf_obj()
130 CHECK(linum_map == -1, "get linum_map fd", in prepare_bpf_obj()
134 CHECK(!map, "find data_check_map", "!map\n"); in prepare_bpf_obj()
136 CHECK(data_check_map == -1, "get data_check_map fd", in prepare_bpf_obj()
166 CHECK(fd == -1, "open(sysctl)", "sysctl:%s fd:%d errno:%d\n", in read_int_sysctl()
170 CHECK(ret <= 0, "read(sysctl)", "sysctl:%s ret:%d errno:%d\n", in read_int_sysctl()
183 CHECK(fd == -1, "open(sysctl)", "sysctl:%s fd:%d errno:%d\n", in write_int_sysctl()
188 CHECK(ret != size, "write(sysctl)", in write_int_sysctl()
223 CHECK(err == -1, "lookup_elem(linum_map)", "err:%d errno:%d\n", in get_linum()
240 CHECK(err == -1, "getsockname(cli_fd)", "err:%d errno:%d\n", in check_data()
244 CHECK(err == -1, "lookup_elem(data_check_map)", "err:%d errno:%d\n", in check_data()
287 CHECK(1, "data_check result != expected", in check_data()
291 CHECK(!result.hash, "data_check result.hash empty", in check_data()
296 CHECK(expected.len > result.len, "expected.len > result.len", in check_data()
300 CHECK(expected.len != result.len, "expected.len != result.len", in check_data()
313 CHECK(err == -1, "lookup_elem(result_map)", in check_results()
340 CHECK(expected_results[broken] != results[broken], in check_results()
353 CHECK(fd == -1, "socket()", "fd:%d errno:%d\n", fd, errno); in send_data()
357 CHECK(fd == -1, "bind(cli_sa)", "err:%d errno:%d\n", err, errno); in send_data()
361 CHECK(err != len && expected >= PASS, in send_data()
379 CHECK((nev <= 0 && expected >= PASS) || in do_test()
392 CHECK(expected != PASS_ERR_SK_SELECT_REUSEPORT && in do_test()
402 CHECK(new_fd == -1, "accept(srv_fd)", in do_test()
407 CHECK(nread != sizeof(rcv_cmd), in do_test()
415 CHECK(nread != sizeof(rcv_cmd), in do_test()
500 CHECK(err == -1, "update_elem(tmp_index_ovr_map, 0, 1)", in test_syncookie()
505 CHECK(err == -1 || tmp_index != -1, in test_syncookie()
538 CHECK(err == -1, "setsockopt(SO_DETACH_REUSEPORT_BPF)", in test_detach_bpf()
543 CHECK(err == 0 || errno != ENOENT, "setsockopt(SO_DETACH_REUSEPORT_BPF)", in test_detach_bpf()
548 CHECK(err == -1, "lookup_elem(result_map)", in test_detach_bpf()
555 CHECK(nev <= 0, "nev <= 0", in test_detach_bpf()
561 CHECK(err == -1, "lookup_elem(result_map)", in test_detach_bpf()
566 CHECK(nr_run_before != nr_run_after, in test_detach_bpf()
597 CHECK(sk_fds[i] == -1, "socket()", "sk_fds[%d]:%d errno:%d\n", in prepare_sk_fds()
601 CHECK(err == -1, "setsockopt(SO_REUSEPORT)", in prepare_sk_fds()
610 CHECK(err == -1, "setsockopt(SO_ATTACH_REUEPORT_EBPF)", in prepare_sk_fds()
615 CHECK(err == -1, "bind()", "sk_fds[%d] err:%d errno:%d\n", in prepare_sk_fds()
620 CHECK(err == -1, "listen()", in prepare_sk_fds()
627 CHECK(err == -1, "update_elem(reuseport_array)", in prepare_sk_fds()
635 CHECK(err == -1, "getsockname()", in prepare_sk_fds()
641 CHECK(epfd == -1, "epoll_create(1)", in prepare_sk_fds()
648 CHECK(err, "epoll_ctl(EPOLL_CTL_ADD)", "sk_fds[%d]\n", i); in prepare_sk_fds()
659 CHECK(err == -1, "update_elem(tmp_index_ovr_map, 0, -1)", in setup_per_test()
672 CHECK(err == -1, "delete_elem(outer_map)", in cleanup_per_test()
711 CHECK(err == -1, "update_elem(outer_map)", in test_all()