Home
last modified time | relevance | path

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

123456

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
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 …]
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 …]
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()
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 …]
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()
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 …]
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()
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()
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()
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 …]
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()
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 …]
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()
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()
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 …]
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()
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()
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()
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()
/linux-6.12.1/tools/testing/selftests/filesystems/epoll/
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-6.12.1/tools/testing/selftests/net/
Dnetlink-dumps.c53 ASSERT_GE(netlink_sock, 0); in TEST()
59 ASSERT_GE(n, sizeof(struct nlmsghdr)); in TEST()
62 ASSERT_GE(n, sizeof(struct nlmsghdr)); in TEST()
73 ASSERT_GE(netlink_sock, 0); in TEST()
89 ASSERT_GE(netlink_sock, 0); in TEST()
95 ASSERT_GE(mq_fd, 0); in TEST()
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-6.12.1/tools/testing/selftests/filesystems/eventfd/
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-6.12.1/tools/testing/selftests/core/
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-6.12.1/tools/testing/selftests/mount_setattr/
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 …]

123456