Home
last modified time | relevance | path

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

1234

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dlsm_cgroup.c49 ASSERT_GE(fd, 0, "prog_get_fd_by_id"); in query_prog_cnt()
83 if (!ASSERT_GE(cgroup_fd3, 0, "create empty cgroup")) in test_lsm_cgroup_functional()
87 if (!ASSERT_GE(cgroup_fd2, 0, "create cgroup for reuse")) in test_lsm_cgroup_functional()
91 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_lsm_cgroup_functional()
147 if (!ASSERT_GE(bind_link_fd, 0, "link create bind_prog_fd")) in test_lsm_cgroup_functional()
170 if (!ASSERT_GE(bind_link_fd2, 0, "link create bind_prog_fd2")) in test_lsm_cgroup_functional()
185 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) in test_lsm_cgroup_functional()
190 ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional()
202 ASSERT_GE(fd, 0, "socket(AF_PACKET, ..., 0)"); in test_lsm_cgroup_functional()
218 ASSERT_GE(listen_fd, 0, "start_server"); in test_lsm_cgroup_functional()
[all …]
Dmptcp.c47 if (!ASSERT_GE(fd, 0, "failed to open tcp_congestion_control")) in get_msk_ca_name()
108 if (!ASSERT_GE(prog_fd, 0, "bpf_program__fd")) { in run_test()
114 if (!ASSERT_GE(map_fd, 0, "bpf_map__fd")) { in run_test()
124 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_test()
144 if (!ASSERT_GE(cgroup_fd, 0, "test__join_cgroup")) in test_base()
149 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_base()
159 if (!ASSERT_GE(server_fd, 0, "start_mptcp_server")) in test_base()
Dtest_tunnel.c275 if (!ASSERT_GE(get_src_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
277 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
288 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
302 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_vxlan_tunnel()
310 if (!ASSERT_GE(local_ip_map_fd, 0, "bpf_map__fd")) in test_vxlan_tunnel()
359 if (!ASSERT_GE(set_src_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
361 if (!ASSERT_GE(get_src_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
375 if (!ASSERT_GE(set_dst_prog_fd, 0, "bpf_program__fd")) in test_ip6vxlan_tunnel()
383 if (!ASSERT_GE(local_ip_map_fd, 0, "get local_ip_map fd")) in test_ip6vxlan_tunnel()
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()
Dsetget_sockopt.c50 if (!ASSERT_GE(sfd, 0, "start_server")) in test_tcp()
54 if (!ASSERT_GE(cfd, 0, "connect_to_fd_server")) { in test_tcp()
78 if (!ASSERT_GE(sfd, 0, "start_server")) in test_udp()
82 ASSERT_GE(bss->nr_socket_post_create, 1, "nr_socket_post_create"); in test_udp()
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()
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()
Dxdp_bonding.c228 if (!ASSERT_GE(s, 0, "socket")) in send_udp_packets()
298 ASSERT_GE(veth1_rx + veth2_rx, NPACKETS, "expected more packets"); in test_xdp_bonding_with_mode()
302 ASSERT_GE(diff, NPACKETS, in test_xdp_bonding_with_mode()
321 ASSERT_GE(diff, NPACKETS, in test_xdp_bonding_with_mode()
379 ASSERT_GE(veth1_2_rx, NPACKETS, "expected packets on veth1_2"); in test_xdp_bonding_redirect_multi()
399 if (!ASSERT_GE(veth, 0, "if_nametoindex veth")) in test_xdp_bonding_attach()
402 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_attach()
476 if (!ASSERT_GE(bond, 0, "if_nametoindex bond")) in test_xdp_bonding_nested()
535 if (!ASSERT_GE(root_netns_fd, 0, "open /proc/self/ns/net")) in serial_test_xdp_bonding()
Dsockopt_inherit.c79 if (!ASSERT_GE(err, 0, "listed on socket")) in server_thread()
87 if (!ASSERT_GE(client_fd, 0, "accept client")) in server_thread()
190 if (!ASSERT_GE(server_fd, 0, "start_server")) in run_test()
203 if (!ASSERT_GE(client_fd, 0, "connect_to_server")) in run_test()
228 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_sockopt_inherit()
Dsockmap_ktls.c18 if (!ASSERT_GE(s, 0, "socket")) in tcp_server()
51 if (!ASSERT_GE(cli, 0, "socket")) in test_sockmap_ktls_disconnect_after_delete()
102 if (!ASSERT_GE(s, 0, "socket")) in test_sockmap_ktls_update_fails_when_sock_has_ulp()
154 if (!ASSERT_GE(map, 0, "bpf_map_create")) in run_tests()
Dbpf_iter.c60 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in do_dummy_read_opts()
97 if (!ASSERT_GE(iter_fd, 0, "create_map_iter")) { in do_read_map_iter_fd()
118 ASSERT_GE(len, 0, "read_iterator"); in do_read_map_iter_fd()
409 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in do_btf_read()
563 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_anon_iter()
708 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_overflow()
837 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_bpf_hash_map()
918 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_bpf_percpu_hash_map()
983 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_bpf_array_map()
1085 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_bpf_percpu_array_map()
[all …]
Dbpf_nf.c39 if (!ASSERT_GE(fd, 0, "socket")) in connect_to_server()
77 if (!ASSERT_GE(srv_fd, 0, "start_server")) in test_bpf_nf_ct()
81 if (!ASSERT_GE(client_fd, 0, "connect_to_server")) in test_bpf_nf_ct()
86 if (!ASSERT_GE(srv_client_fd, 0, "accept")) in test_bpf_nf_ct()
Dbpf_cookie.c149 if (!ASSERT_GE(link1_fd, 0, "link1_fd")) in kprobe_multi_link_api_subtest()
165 if (!ASSERT_GE(link2_fd, 0, "link2_fd")) in kprobe_multi_link_api_subtest()
250 if (!ASSERT_GE(uprobe_offset, 0, "uprobe_offset")) in uprobe_subtest()
380 if (!ASSERT_GE(pfd, 0, "perf_fd")) in pe_subtest()
431 if (!ASSERT_GE(fentry_fd, 0, "fentry.link_create")) in tracing_subtest()
438 if (!ASSERT_GE(fexit_fd, 0, "fexit.link_create")) in tracing_subtest()
445 if (!ASSERT_GE(fmod_ret_fd, 0, "fmod_ret.link_create")) in tracing_subtest()
482 if (!ASSERT_GE(lsm_fd, 0, "lsm.link_create")) in lsm_subtest()
Dtcp_rtt.c53 if (!ASSERT_GE(bpf_map_lookup_elem(map_fd, &client_fd, &val), 0, "read socket storage")) in verify_sk()
151 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup /tcp_rtt")) in test_tcp_rtt()
155 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_tcp_rtt()
Dlog_buf.c168 ASSERT_GE(fd, 0, "good_fd1"); in bpf_prog_load_log_buf()
179 ASSERT_GE(fd, 0, "good_fd2"); in bpf_prog_load_log_buf()
229 ASSERT_GE(fd, 0, "good_fd1"); in bpf_btf_load_log_buf()
240 ASSERT_GE(fd, 0, "good_fd2"); in bpf_btf_load_log_buf()
Dsend_signal.c33 if (!ASSERT_GE(pid, 0, "fork")) { in test_send_signal_common()
101 if (!ASSERT_GE(pmu_fd, 0, "perf_event_open")) { in test_send_signal_common()
125 if (!ASSERT_GE(err, 0, "reading pipe")) in test_send_signal_common()
Dfexit_stress.c36 if (!ASSERT_GE(fexit_fd[i], 0, "fexit load")) in serial_test_fexit_stress()
39 if (!ASSERT_GE(link_fd[i], 0, "fexit attach")) in serial_test_fexit_stress()
Dsockopt_qos_to_cc.c38 if (!ASSERT_GE(cg_fd, 0, "cg-join(sockopt_qos_to_cc)")) in test_sockopt_qos_to_cc()
46 if (!ASSERT_GE(sock_fd, 0, "v6 socket open")) in test_sockopt_qos_to_cc()
Dxdp_synproxy.c134 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_synproxy()
141 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_synproxy()
145 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_synproxy()
Dtc_redirect.c294 if (!ASSERT_GE(listen_fd, 0, "listen")) in test_tcp()
303 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_tcp()
307 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_tcp()
398 if (ASSERT_GE(now_ns, pkt_ns, "check rcv tstamp")) in rcv_tstamp()
450 if (!ASSERT_GE(listen_fd, 0, "listen")) in test_inet_dtime()
475 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_inet_dtime()
482 if (!ASSERT_GE(accept_fd, 0, "accept")) in test_inet_dtime()
931 if (!ASSERT_GE(fd, 0, "open /dev/net/tun")) in tun_open()
1013 if (!ASSERT_GE(src_fd, 0, "tun_open tun_src")) in test_tc_redirect_peer_l3()
1023 if (!ASSERT_GE(target_fd, 0, "tun_open tun_fwd")) in test_tc_redirect_peer_l3()
[all …]
/Linux-v6.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-v6.1/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c639 ASSERT_GE(fd, 0); in TEST_F()
688 ASSERT_GE(fd, 0); in TEST_F()
718 ASSERT_GE(dfd, 0); in TEST_F()
994 ASSERT_GE(fd, 0); in TEST_F()
1059 ASSERT_GE(img_fd, 0); in FIXTURE_SETUP()
1122 ASSERT_GE(fd, 0); in TEST_F()
1123 ASSERT_GE(close(fd), 0); in TEST_F()
1148 ASSERT_GE(open_tree_fd, 0); in TEST_F()
1151 ASSERT_GE(attr.userns_fd, 0); in TEST_F()
1258 ASSERT_GE(open_tree_fd, 0); in TEST_F()
[all …]
/Linux-v6.1/tools/testing/selftests/pidfd/
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()
Dpidfd_getfd_test.c144 ASSERT_GE(self->pid, 0); in FIXTURE_SETUP()
156 ASSERT_GE(self->pidfd, 0); in FIXTURE_SETUP()
205 ASSERT_GE(fd, 0); in TEST_F()
213 ASSERT_GE(ret, 0); in TEST_F()
/Linux-v6.1/tools/testing/selftests/core/
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()

1234