Home
last modified time | relevance | path

Searched refs:ASSERT_GE (Results 1 - 25 of 132) sorted by relevance

123456

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dsock_destroy.c22 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in start_iter_sockets()
27 ASSERT_GE(len, 0, "read"); in start_iter_sockets()
40 if (!ASSERT_GE(serv, 0, "start_server")) in test_tcp_client()
44 if (!ASSERT_GE(clien, 0, "connect_to_fd")) in test_tcp_client()
48 if (!ASSERT_GE(accept_serv, 0, "serv accept")) in test_tcp_client()
77 if (!ASSERT_GE(serv, 0, "start_server")) in test_tcp_server()
80 if (!ASSERT_GE(serv_port, 0, "get_sock_local_port")) in test_tcp_server()
85 if (!ASSERT_GE(clien, 0, "connect_to_fd")) in test_tcp_server()
89 if (!ASSERT_GE(accept_serv, 0, "serv accept")) in test_tcp_server()
118 if (!ASSERT_GE(ser in test_udp_client()
[all...]
H A Dlsm_cgroup.c49 ASSERT_GE(fd, 0, "prog_get_fd_by_id"); in query_prog_cnt()
84 if (!ASSERT_GE(cgroup_fd3, 0, "create empty cgroup")) in test_lsm_cgroup_functional()
88 if (!ASSERT_GE(cgroup_fd2, 0, "create cgroup for reuse")) in test_lsm_cgroup_functional()
92 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_lsm_cgroup_functional()
148 if (!ASSERT_GE(bind_link_fd, 0, "link create bind_prog_fd")) in test_lsm_cgroup_functional()
171 if (!ASSERT_GE(bind_link_fd2, 0, "link create bind_prog_fd2")) in test_lsm_cgroup_functional()
188 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) in test_lsm_cgroup_functional()
193 ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional()
205 ASSERT_GE(fd, 0, "socket(AF_PACKET, ..., 0)"); in test_lsm_cgroup_functional()
221 ASSERT_GE(listen_f in test_lsm_cgroup_functional()
[all...]
H A Dip_check_defrag.c115 if (!ASSERT_GE(err, 0, "sendto frag_0")) in send_frags()
119 if (!ASSERT_GE(err, 0, "sendto frag_1")) in send_frags()
123 if (!ASSERT_GE(err, 0, "sendto frag_2")) in send_frags()
143 if (!ASSERT_GE(err, 0, "sendto frag6_0")) in send_frags6()
147 if (!ASSERT_GE(err, 0, "sendto frag6_1")) in send_frags6()
151 if (!ASSERT_GE(err, 0, "sendto frag6_2")) in send_frags6()
195 if (!ASSERT_GE(srv_fd, 0, "start_server")) in test_bpf_ip_check_defrag_ok()
204 if (!ASSERT_GE(client_tx_fd, 0, "connect_to_fd_opts")) in test_bpf_ip_check_defrag_ok()
213 if (!ASSERT_GE(client_rx_fd, 0, "connect_to_fd_opts")) in test_bpf_ip_check_defrag_ok()
255 if (!ASSERT_GE(le in test_bpf_ip_check_defrag_ok()
[all...]
H A Dlwt_reroute.c105 if (!ASSERT_GE(s, 0, "socket")) in overflow_fq()
156 if (!ASSERT_GE(tap_fd, 0, "open_tun")) in setup()
160 if (!ASSERT_GE(target_index, 0, "if_nametoindex")) in setup()
196 if (!ASSERT_GE(tun_fd, 0, "setup_reroute")) in test_lwt_reroute_normal_xmit()
200 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) in test_lwt_reroute_normal_xmit()
225 if (!ASSERT_GE(tun_fd, 0, "setup_reroute")) in test_lwt_reroute_qdisc_dropped()
231 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) in test_lwt_reroute_qdisc_dropped()
H A Dbpf_obj_pinning.c51 if (!ASSERT_GE(fs_fd, 0, "fs_fd")) in bpf_obj_pinning_detached()
61 if (!ASSERT_GE(mnt_fd, 0, "mnt_fd")) in bpf_obj_pinning_detached()
76 if (!ASSERT_GE(map_fd, 0, "map_fd")) in bpf_obj_pinning_detached()
90 if (!ASSERT_GE(map_fd2, 0, "map_get")) in bpf_obj_pinning_detached()
149 ASSERT_GE(pin_opts.path_fd, 0, "path_fd"); in validate_pin()
165 if (!ASSERT_GE(map_fd2, 0, "map_get")) in validate_pin()
214 ASSERT_GE(get_opts.path_fd, 0, "path_fd"); in validate_get()
220 if (!ASSERT_GE(map_fd2, 0, "map_get")) in validate_get()
251 if (!ASSERT_GE(map_fd, 0, "map_fd")) in bpf_obj_pinning_mounted()
H A Dmptcp.c109 if (!ASSERT_GE(fd, 0, "failed to open tcp_congestion_control")) in get_msk_ca_name()
176 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_test()
197 if (!ASSERT_GE(cgroup_fd, 0, "test__join_cgroup")) in test_base()
206 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_base()
216 if (!ASSERT_GE(server_fd, 0, "start_mptcp_server")) in test_base()
255 if (!ASSERT_GE(info.mptcpi_flags, 0, "unexpected mptcpi_flags")) in verify_mptcpify()
282 if (!ASSERT_GE(server_fd, 0, "start_server")) { in run_mptcpify()
288 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_mptcpify()
311 if (!ASSERT_GE(cgroup_fd, 0, "test__join_cgroup")) in test_mptcpify()
H A Dlwt_redirect.c79 if (!ASSERT_GE(link_index, 0, "if_nametoindex")) in ping_dev()
100 if (!ASSERT_GE(s, 0, "socket(AF_PACKET)")) in new_packet_sock()
104 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) { in new_packet_sock()
199 if (!ASSERT_GE(tap_fd, 0, "open_tuntap")) in setup_redirect_target()
203 if (!ASSERT_GE(target_index, 0, "if_nametoindex")) in setup_redirect_target()
234 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in test_lwt_redirect_normal()
248 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in test_lwt_redirect_normal_nomac()
264 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in __test_lwt_redirect_dev_down()
295 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in test_lwt_redirect_dev_carrier_down()
H A Dcgroup_tcp_skb.c75 if (!ASSERT_GE(*client_fd, 0, "client_fd")) in talk_to_cgroup()
81 if (!ASSERT_GE(*listen_fd, 0, "listen_fd")) in talk_to_cgroup()
84 if (!ASSERT_GE(port, 0, "get_socket_local_port")) in talk_to_cgroup()
93 if (!ASSERT_GE(*service_fd, 0, "service_fd")) in talk_to_cgroup()
122 if (!ASSERT_GE(*listen_fd, 0, "listen_fd")) in talk_to_outside()
128 if (!ASSERT_GE(*client_fd, 0, "client_fd")) in talk_to_outside()
134 if (!ASSERT_GE(port, 0, "get_socket_local_port")) in talk_to_outside()
143 if (!ASSERT_GE(*service_fd, 0, "service_fd")) in talk_to_outside()
190 if (!ASSERT_GE(skel->bss->g_packet_count, saved_packet_count + 2, in close_connection()
207 if (!ASSERT_GE(ske in close_connection()
[all...]
H A Dsetget_sockopt.c51 if (!ASSERT_GE(sfd, 0, "start_server")) in test_tcp()
55 if (!ASSERT_GE(cfd, 0, "connect_to_fd_server")) { in test_tcp()
79 if (!ASSERT_GE(sfd, 0, "start_server")) in test_udp()
83 ASSERT_GE(bss->nr_socket_post_create, 1, "nr_socket_post_create"); in test_udp()
98 if (!ASSERT_GE(sfd, 0, "start_server")) in test_ktls()
101 if (!ASSERT_GE(fd, 0, "connect_to_fd")) in test_ktls()
105 if (!ASSERT_GE(cfd, 0, "accept")) in test_ktls()
H A Dcgroup_v1v2.c53 if (!ASSERT_GE(server_fd, 0, "server_fd")) in test_cgroup_v1v2()
56 if (!ASSERT_GE(client_fd, 0, "client_fd")) { in test_cgroup_v1v2()
65 if (!ASSERT_GE(cgroup_fd, 0, "cgroup_fd")) in test_cgroup_v1v2()
68 if (!ASSERT_GE(server_fd, 0, "server_fd")) { in test_cgroup_v1v2()
H A Dxdp_bonding.c221 if (!ASSERT_GE(s, 0, "socket")) in send_udp_packets()
291 ASSERT_GE(veth1_rx + veth2_rx, NPACKETS, "expected more packets"); in test_xdp_bonding_with_mode()
295 ASSERT_GE(diff, NPACKETS, in test_xdp_bonding_with_mode()
314 ASSERT_GE(diff, NPACKETS, in test_xdp_bonding_with_mode()
372 ASSERT_GE(veth1_2_rx, NPACKETS, "expected packets on veth1_2"); in test_xdp_bonding_redirect_multi()
392 if (!ASSERT_GE(veth, 0, "if_nametoindex veth")) in test_xdp_bonding_attach()
395 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_attach()
469 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_nested()
506 if (!ASSERT_GE(bond_idx, 0, "if_nametoindex bond")) in test_xdp_bonding_features()
544 if (!ASSERT_GE(veth1_id in test_xdp_bonding_features()
[all...]
H A Dtest_tunnel.c336 if (!ASSERT_GE(get_src_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
338 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
349 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
363 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
371 if (!ASSERT_GE(local_ip_map_fd, 0, "bpf_map__fd")) in test_vxlan_tunnel()
420 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
422 if (!ASSERT_GE(get_src_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
436 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
444 if (!ASSERT_GE(local_ip_map_fd, 0, "get local_ip_map fd")) in test_ip6vxlan_tunnel()
509 if (!ASSERT_GE(set_src_prog_f in test_ipip_tunnel()
[all...]
H A Dsockopt_inherit.c81 if (!ASSERT_GE(err, 0, "listed on socket")) in server_thread()
89 if (!ASSERT_GE(client_fd, 0, "accept client")) in server_thread()
164 if (!ASSERT_GE(server_fd, 0, "start_server")) in run_test()
177 if (!ASSERT_GE(client_fd, 0, "connect_to_server")) in run_test()
205 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_sockopt_inherit()
H A Dvrf_socket_lookup.c72 if (!ASSERT_GE(fd, 0, "socket")) in make_socket()
89 if (!ASSERT_GE(fd, 0, "start_server")) in make_server()
180 if (!ASSERT_GE(tc_prog_fd, 0, "bpf_program__tc_fd")) in setup()
183 if (!ASSERT_GE(xdp_prog_fd, 0, "bpf_program__xdp_fd")) in setup()
248 if (!ASSERT_GE(non_vrf_server, 0, "make_server__outside_vrf_fd")) in _test_vrf_socket_lookup()
252 if (!ASSERT_GE(in_vrf_server, 0, "make_server__in_vrf_fd")) in _test_vrf_socket_lookup()
H A Dfexit_stress.c11 if (!ASSERT_GE(bpf_max_tramp_links, 1, "bpf_max_tramp_links")) in serial_test_fexit_stress()
41 if (!ASSERT_GE(fexit_fd[i], 0, "fexit load")) in serial_test_fexit_stress()
44 if (!ASSERT_GE(link_fd[i], 0, "fexit attach")) in serial_test_fexit_stress()
H A Dstacktrace_map_skip.c19 if (!ASSERT_GE(stackid_hmap_fd, 0, "stackid_hmap fd")) in test_stacktrace_map_skip()
23 if (!ASSERT_GE(stackmap_fd, 0, "stackmap fd")) in test_stacktrace_map_skip()
27 if (!ASSERT_GE(stack_amap_fd, 0, "stack_amap fd")) in test_stacktrace_map_skip()
H A Dudp_limit.c15 if (!ASSERT_GE(cgroup_fd, 0, "cg-join")) in test_udp_limit()
33 if (!ASSERT_GE(fd1, 0, "socket(fd1)")) in test_udp_limit()
45 if (!ASSERT_GE(fd1, 0, "socket(fd1-again)")) in test_udp_limit()
H A Dnetcnt.c34 if (!ASSERT_GE(cg_fd, 0, "test__join_cgroup")) in serial_test_netcnt()
70 ASSERT_GE(packets, 10000, "packets"); in serial_test_netcnt()
75 ASSERT_GE(bytes, packets * 104, "bytes"); in serial_test_netcnt()
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c172 ASSERT_GE(efd, 0); in TEST()
203 ASSERT_GE(efd, 0); in TEST()
235 ASSERT_GE(efd, 0); in TEST()
273 ASSERT_GE(efd, 0); in TEST()
311 ASSERT_GE(efd, 0); in TEST()
350 ASSERT_GE(efd, 0); in TEST()
391 ASSERT_GE(efd, 0); in TEST()
437 ASSERT_GE(efd, 0); in TEST()
483 ASSERT_GE(ctx.efd[0], 0); in TEST()
526 ASSERT_GE(ct in TEST()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c157 ASSERT_GE(efd, 0); in TEST()
188 ASSERT_GE(efd, 0); in TEST()
220 ASSERT_GE(efd, 0); in TEST()
258 ASSERT_GE(efd, 0); in TEST()
296 ASSERT_GE(efd, 0); in TEST()
335 ASSERT_GE(efd, 0); in TEST()
376 ASSERT_GE(efd, 0); in TEST()
422 ASSERT_GE(efd, 0); in TEST()
468 ASSERT_GE(ctx.efd[0], 0); in TEST()
511 ASSERT_GE(ct in TEST()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c56 ASSERT_GE(pidfd, 0); in TEST()
64 ASSERT_GE(pidfd, 0); in TEST()
72 ASSERT_GE(pid, 0); in TEST()
78 ASSERT_GE(pid, 0); in TEST()
105 ASSERT_GE(pid, 0); in TEST()
173 ASSERT_GE(pid, 0); in TEST()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dip_local_port_range.c175 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
225 ASSERT_GE(fd, 0) TH_LOG("#%d: socket failed", i); in TEST_F()
236 ASSERT_GE(port, 40000) TH_LOG("#%d: expected port within netns range", i); in TEST_F()
271 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
298 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
308 ASSERT_GE(port, 40000) TH_LOG("expected port within sockopt range"); in TEST_F()
320 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
356 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
394 ASSERT_GE(port, 40100); in TEST_F()
408 ASSERT_GE(f in TEST_F()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c633 ASSERT_GE(fd, 0); in TEST_F()
682 ASSERT_GE(fd, 0); in TEST_F()
712 ASSERT_GE(dfd, 0); in TEST_F()
988 ASSERT_GE(fd, 0); in TEST_F()
1053 ASSERT_GE(img_fd, 0); in FIXTURE_SETUP()
1116 ASSERT_GE(fd, 0); in TEST_F()
1117 ASSERT_GE(close(fd), 0); in TEST_F()
1142 ASSERT_GE(open_tree_fd, 0); in TEST_F()
1145 ASSERT_GE(attr.userns_fd, 0); in TEST_F()
1252 ASSERT_GE(open_tree_f in TEST_F()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/core/
H A Dclose_range_test.c62 ASSERT_GE(fd, 0) { in TEST()
126 ASSERT_GE(fd, 0) { in TEST()
135 ASSERT_GE(pid, 0); in TEST()
215 ASSERT_GE(fd, 0) { in TEST()
224 ASSERT_GE(pid, 0); in TEST()
254 ASSERT_GE(fd, 0) { in TEST()
322 ASSERT_GE(fd, 0) { in TEST()
403 ASSERT_GE(pid, 0); in TEST()
497 ASSERT_GE(pid, 0); in TEST()
/kernel/linux/linux-5.10/tools/testing/selftests/core/
H A Dclose_range_test.c45 ASSERT_GE(fd, 0) { in TEST()
109 ASSERT_GE(fd, 0) { in TEST()
118 ASSERT_GE(pid, 0); in TEST()
198 ASSERT_GE(fd, 0) { in TEST()
207 ASSERT_GE(pid, 0); in TEST()

Completed in 13 milliseconds

123456