Lines Matching refs:CHECK

43 #define CHECK(condition, tag, format...) ({				\  macro
131 CHECK(err == -1, "bpf_map_lookup_elem(linum_map_fd)", in check_result()
136 CHECK(err == -1, "bpf_map_lookup_elem(linum_map_fd)", in check_result()
140 CHECK(err == -1, "bpf_map_lookup_elem(sk_map_fd, &egress_srv_idx)", in check_result()
143 CHECK(err == -1, "bpf_map_lookup_elem(tp_map_fd, &egress_srv_idx)", in check_result()
147 CHECK(err == -1, "bpf_map_lookup_elem(sk_map_fd, &egress_cli_idx)", in check_result()
150 CHECK(err == -1, "bpf_map_lookup_elem(tp_map_fd, &egress_cli_idx)", in check_result()
154 CHECK(err == -1, "bpf_map_lookup_elem(sk_map_fd, &ingress_listen_idx)", in check_result()
157 CHECK(err == -1, "bpf_map_lookup_elem(tp_map_fd, &ingress_listen_idx)", in check_result()
184 CHECK(listen_sk.state != 10 || in check_result()
197 CHECK(srv_sk.state == 10 || in check_result()
210 CHECK(cli_sk.state == 10 || in check_result()
223 CHECK(listen_tp.data_segs_out || in check_result()
230 CHECK(srv_tp.data_segs_out != 2 || in check_result()
238 CHECK(cli_tp.data_segs_out || in check_result()
266 CHECK(err || pkt_out_cnt.cnt != 4 || pkt_out_cnt10.cnt != 40, in check_sk_pkt_out_cnt()
283 CHECK(err || pkt_out_cnt.cnt != 0xeB9F + 4 || in check_sk_pkt_out_cnt()
298 CHECK(err, "bpf_map_update_elem(sk_pkt_out_cnt_fd)", in init_sk_storage()
304 CHECK(err, "bpf_map_update_elem(sk_pkt_out_cnt10_fd)", in init_sk_storage()
319 CHECK(epfd == -1, "epoll_create()", "epfd:%d errno:%d", epfd, errno); in test()
323 CHECK(listen_fd == -1, "socket()", "listen_fd:%d errno:%d", in test()
328 CHECK(err, "bind(listen_fd)", "err:%d errno:%d", err, errno); in test()
331 CHECK(err, "getsockname(listen_fd)", "err:%d errno:%d", err, errno); in test()
334 CHECK(err, "listen(listen_fd)", "err:%d errno:%d", err, errno); in test()
338 CHECK(cli_fd == -1, "socket()", "cli_fd:%d errno:%d", cli_fd, errno); in test()
342 CHECK(err, "bind(cli_fd)", "err:%d errno:%d", err, errno); in test()
345 CHECK(err, "getsockname(cli_fd)", "err:%d errno:%d", in test()
350 CHECK(err, "map_update", "err:%d errno:%d", err, errno); in test()
353 CHECK(err, "map_update", "err:%d errno:%d", err, errno); in test()
359 CHECK(err && errno != EINPROGRESS, in test()
364 CHECK(err, "epoll_ctl(EPOLL_CTL_ADD, listen_fd)", "err:%d errno:%d", in test()
370 CHECK(err != 1 || ev.data.fd != listen_fd, in test()
376 CHECK(accept_fd == -1, "accept(listen_fd)", "accept_fd:%d errno:%d", in test()
382 CHECK(err, "epoll_ctl(EPOLL_CTL_ADD, cli_fd)", "err:%d errno:%d", in test()
390 CHECK(err != DATA_LEN, "send(accept_fd)", "err:%d errno:%d", in test()
395 CHECK(err != 1 || ev.data.fd != cli_fd, in test()
400 CHECK(err, "recv(cli_fd)", "err:%d errno:%d", err, errno); in test()
425 CHECK(err, "setup_cgroup_environment()", "err:%d errno:%d", in main()
432 CHECK(cgroup_fd == -1, "create_and_get_cgroup()", in main()
436 CHECK(err, "join_cgroup", "err:%d errno:%d", err, errno); in main()
439 CHECK(err, "bpf_prog_load_xattr()", "err:%d", err); in main()
443 CHECK(!ingress_prog, in main()
449 CHECK(err == -1, "bpf_prog_attach(CPF_CGROUP_INET_EGRESS)", in main()
454 CHECK(err == -1, "bpf_prog_attach(CPF_CGROUP_INET_INGRESS)", in main()
459 CHECK(!map, "cannot find addr_map", "(null)"); in main()
463 CHECK(!map, "cannot find sock_result_map", "(null)"); in main()
467 CHECK(!map, "cannot find tcp_sock_result_map", "(null)"); in main()
471 CHECK(!map, "cannot find linum_map", "(null)"); in main()
475 CHECK(!map, "cannot find sk_pkt_out_cnt", "(null)"); in main()
479 CHECK(!map, "cannot find sk_pkt_out_cnt10", "(null)"); in main()