Home
last modified time | relevance | path

Searched refs:ASSERT_GE (Results 1 – 25 of 148) sorted by relevance

123456

/linux/tools/testing/selftests/bpf/prog_tests/
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_fd, 0, "start_server"); in test_lsm_cgroup_functional()
[all …]
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(serv, 0, "start_server")) in test_udp_client()
[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()
168 if (!ASSERT_GE(sfd, 0, "start_server")) in test_nonstandard_opt()
172 if (!ASSERT_GE(fd, 0, "connect_to_fd_server")) in test_nonstandard_opt()
185 if (!ASSERT_GE(cfd, 0, "accept")) in test_nonstandard_opt()
H A Dip_check_defrag.c117 if (!ASSERT_GE(err, 0, "sendto frag_0")) in send_frags()
121 if (!ASSERT_GE(err, 0, "sendto frag_1")) in send_frags()
125 if (!ASSERT_GE(err, 0, "sendto frag_2")) in send_frags()
145 if (!ASSERT_GE(err, 0, "sendto frag6_0")) in send_frags6()
149 if (!ASSERT_GE(err, 0, "sendto frag6_1")) in send_frags6()
153 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, "client_socket")) in test_bpf_ip_check_defrag_ok()
213 if (!ASSERT_GE(client_rx_fd, 0, "client_socket")) in test_bpf_ip_check_defrag_ok()
255 if (!ASSERT_GE(len, 0, "server recvfrom")) in test_bpf_ip_check_defrag_ok()
[all …]
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(skel->bss->g_packet_count, saved_packet_count + 2, in close_connection()
[all …]
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 Dlwt_reroute.c107 if (!ASSERT_GE(s, 0, "socket")) in overflow_fq()
158 if (!ASSERT_GE(tap_fd, 0, "open_tun")) in setup()
162 if (!ASSERT_GE(target_index, 0, "if_nametoindex")) in setup()
198 if (!ASSERT_GE(tun_fd, 0, "setup_reroute")) in test_lwt_reroute_normal_xmit()
202 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) in test_lwt_reroute_normal_xmit()
227 if (!ASSERT_GE(tun_fd, 0, "setup_reroute")) in test_lwt_reroute_qdisc_dropped()
233 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) in test_lwt_reroute_qdisc_dropped()
H A Dbpf_iter.c59 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in do_dummy_read_opts()
65 ASSERT_GE(len, 0, "read"); in do_dummy_read_opts()
96 if (!ASSERT_GE(iter_fd, 0, "create_map_iter")) { in do_read_map_iter_fd()
117 ASSERT_GE(len, 0, "read_iterator"); in do_read_map_iter_fd()
422 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in do_btf_read()
433 if (!ASSERT_GE(err, 0, "read")) in do_btf_read()
550 if (!ASSERT_GE(len, 0, "read")) in do_read_with_fd()
576 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_anon_iter()
591 if (!ASSERT_GE(iter_fd, 0, "open")) in do_read()
670 if (!ASSERT_GE(map1_fd, 0, "bpf_map_create")) in test_overflow()
[all …]
H A Dmptcp.c120 if (!ASSERT_GE(fd, 0, "failed to open tcp_congestion_control")) in get_msk_ca_name()
187 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_test()
208 if (!ASSERT_GE(cgroup_fd, 0, "test__join_cgroup")) in test_base()
217 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_base()
227 if (!ASSERT_GE(server_fd, 0, "start_mptcp_server")) in test_base()
266 if (!ASSERT_GE(info.mptcpi_flags, 0, "unexpected mptcpi_flags")) in verify_mptcpify()
295 if (!ASSERT_GE(server_fd, 0, "start_server")) { in run_mptcpify()
301 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_mptcpify()
324 if (!ASSERT_GE(cgroup_fd, 0, "test__join_cgroup")) in test_mptcpify()
H A Dtest_tunnel.c428 if (!ASSERT_GE(get_src_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
430 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
441 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
455 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
463 if (!ASSERT_GE(local_ip_map_fd, 0, "bpf_map__fd")) in test_vxlan_tunnel()
512 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
514 if (!ASSERT_GE(get_src_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
528 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
536 if (!ASSERT_GE(local_ip_map_fd, 0, "get local_ip_map fd")) in test_ip6vxlan_tunnel()
601 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_ipip_tunnel()
[all …]
H A Dfs_kfuncs.c22 if (!ASSERT_GE(fd, 0, "create_file")) in test_xattr()
51 if (!ASSERT_GE(fd, 0, "open_file")) in test_xattr()
81 if (!ASSERT_GE(fd, 0, "create_file")) in test_fsverity()
92 if (!ASSERT_GE(fd, 0, "open_file1")) in test_fsverity()
131 if (!ASSERT_GE(fd, 0, "open_file2")) in test_fsverity()
H A Dcgroup_v1v2.c55 if (!ASSERT_GE(server_fd, 0, "server_fd")) in test_cgroup_v1v2()
58 if (!ASSERT_GE(client_fd, 0, "client_fd")) { in test_cgroup_v1v2()
67 if (!ASSERT_GE(cgroup_fd, 0, "cgroup_fd")) in test_cgroup_v1v2()
70 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_idx, 0, "if_nametoindex veth1")) in test_xdp_bonding_features()
[all …]
H A Dsockopt_inherit.c53 if (!ASSERT_GE(err, 0, "listed on socket")) in server_thread()
61 if (!ASSERT_GE(client_fd, 0, "accept client")) in server_thread()
126 if (!ASSERT_GE(server_fd, 0, "start_server")) in run_test()
139 if (!ASSERT_GE(client_fd, 0, "connect_to_server")) in run_test()
167 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_sockopt_inherit()
H A Dcgrp_local_storage.c114 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_attach_cgroup()
118 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_attach_cgroup()
204 if (!ASSERT_GE(iter_fd, 0, "iter_create")) in test_cgroup_iter_sleepable()
287 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup /cgrp_local_storage")) in cgrp2_local_storage()
325 if (!ASSERT_GE(cgrp1_fd, 0, "cgroup1 fd")) in cgrp1_local_storage()
329 if (!ASSERT_GE(cgrp1_id, 0, "cgroup1 id")) in cgrp1_local_storage()
333 if (!ASSERT_GE(cgrp1_hid, 0, "cgroup1 hid")) in cgrp1_local_storage()
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 Dxdp_metadata.c214 if (!ASSERT_GE(ret, 0, "sendto")) in generate_packet()
233 if (!ASSERT_GE(sock_fd, 0, "socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)")) in generate_packet_inet()
238 ASSERT_GE(err, 0, "sendto"); in generate_packet_inet()
448 if (!ASSERT_GE(ret, 0, "bpf_xdp_attach")) in test_xdp_metadata()
453 if (!ASSERT_GE(ret, 0, "bpf_map_update_elem")) in test_xdp_metadata()
466 if (!ASSERT_GE(generate_packet(&tx_xsk, AF_XDP_CONSUMER_PORT), 0, in test_xdp_metadata()
475 if (!ASSERT_GE(verify_xsk_metadata(&rx_xsk, true), 0, in test_xdp_metadata()
485 if (!ASSERT_GE(generate_packet_inet(), 0, "generate UDP packet")) in test_xdp_metadata()
492 if (!ASSERT_GE(verify_xsk_metadata(&rx_xsk, false), 0, in test_xdp_metadata()
518 if (!ASSERT_GE(generate_packet(&tx_xsk, AF_XDP_CONSUMER_PORT), 0, in test_xdp_metadata()
H A Dbpf_cookie.c150 if (!ASSERT_GE(link1_fd, 0, "link1_fd")) in kprobe_multi_link_api_subtest()
166 if (!ASSERT_GE(link2_fd, 0, "link2_fd")) in kprobe_multi_link_api_subtest()
326 if (!ASSERT_GE(uprobe_offset, 0, "uprobe_offset")) in uprobe_subtest()
456 if (!ASSERT_GE(pfd, 0, "perf_fd")) in pe_subtest()
507 if (!ASSERT_GE(fentry_fd, 0, "fentry.link_create")) in tracing_subtest()
514 if (!ASSERT_GE(fexit_fd, 0, "fexit.link_create")) in tracing_subtest()
521 if (!ASSERT_GE(fmod_ret_fd, 0, "fmod_ret.link_create")) in tracing_subtest()
559 if (!ASSERT_GE(lsm_fd, 0, "lsm.link_create")) in lsm_subtest()
595 if (!ASSERT_GE(link_fd, 0, "bpf_raw_tracepoint_open_opts")) in tp_btf_subtest()
609 if (!ASSERT_GE(link_fd, 0, "bpf_link_create")) in tp_btf_subtest()
[all …]
/linux/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(ctx.efd[0], 0); in TEST()
[all …]
/linux/tools/testing/selftests/filesystems/eventfd/
H A Deventfd_test.c50 ASSERT_GE(fd, 0); in TEST()
64 ASSERT_GE(fd, 0); in TEST()
78 ASSERT_GE(fd, 0); in TEST()
93 ASSERT_GE(fd, 0); in TEST()
172 ASSERT_GE(fd, 0); in TEST()
200 ASSERT_GE(fd, 0); in TEST()
228 ASSERT_GE(fd, 0); in TEST()
257 ASSERT_GE(fd, 0); in TEST()
291 ASSERT_GE(fd, 0); in TEST()
/linux/tools/testing/selftests/core/
H A Dclose_range_test.c48 ASSERT_GE(fd, 0) { in TEST()
121 ASSERT_GE(fd, 0) { in TEST()
130 ASSERT_GE(pid, 0); in TEST()
210 ASSERT_GE(fd, 0) { in TEST()
219 ASSERT_GE(pid, 0); in TEST()
249 ASSERT_GE(fd, 0) { in TEST()
317 ASSERT_GE(fd, 0) { in TEST()
405 ASSERT_GE(pid, 0); in TEST()
527 ASSERT_GE(pid, 0); in TEST()
611 ASSERT_GE(pid, 0); in TEST()
[all …]
/linux/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_fd, 0); in TEST_F()
[all …]
/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c191 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
241 ASSERT_GE(fd, 0) TH_LOG("#%d: socket failed", i); in TEST_F()
252 ASSERT_GE(port, 40000) TH_LOG("#%d: expected port within netns range", i); in TEST_F()
287 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
314 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
324 ASSERT_GE(port, 40000) TH_LOG("expected port within sockopt range"); in TEST_F()
336 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
369 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
407 ASSERT_GE(port, 40100); in TEST_F()
424 ASSERT_GE(fd, 0) TH_LOG("socket failed"); in TEST_F()
/linux/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()
106 ASSERT_GE(pid, 0); in TEST()
182 ASSERT_GE(pid, 0); in TEST()

123456