Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
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()
92 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_lsm_cgroup_functional()
188 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) 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()
223 ASSERT_GE(client_fd, 0, "connect_to_fd"); in test_lsm_cgroup_functional()
225 ASSERT_GE(accepted_fd, 0, "accept"); in test_lsm_cgroup_functional()
279 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) in test_lsm_cgroup_functional()
295 ASSERT_GE(bpf_prog_detach2(alloc_prog_fd, cgroup_fd, in test_lsm_cgroup_functional()
[all …]
A 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()
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()
A 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()
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()
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()
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()
A 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()
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()
A 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()
A 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()
A Dbpf_iter.c61 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in do_dummy_read_opts()
119 ASSERT_GE(len, 0, "read_iterator"); in do_read_map_iter_fd()
405 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in do_btf_read()
559 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_anon_iter()
704 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_overflow()
833 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in test_bpf_hash_map()
1132 if (!ASSERT_GE(sock_fd, 0, "socket")) in test_bpf_sk_storage_delete()
1190 if (!ASSERT_GE(sock_fd, 0, "socket")) in test_bpf_sk_storage_get()
1257 if (!ASSERT_GE(sock_fd[i], 0, "socket")) in test_bpf_sk_storage_map()
1438 if (!ASSERT_GE(err, 0, "read_iter_fd")) in test_task_vma_common()
[all …]
A 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()
A 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()
483 if (!ASSERT_GE(lsm_fd, 0, "lsm.link_create")) in lsm_subtest()
A 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()
A Dxdp_metadata.c194 if (!ASSERT_GE(ret, 0, "sendto")) in generate_packet()
352 if (!ASSERT_GE(ret, 0, "bpf_xdp_attach")) in test_xdp_metadata()
357 if (!ASSERT_GE(ret, 0, "bpf_map_update_elem")) in test_xdp_metadata()
361 if (!ASSERT_GE(generate_packet(&tx_xsk, AF_XDP_CONSUMER_PORT), 0, in test_xdp_metadata()
366 if (!ASSERT_GE(verify_xsk_metadata(&rx_xsk), 0, in test_xdp_metadata()
390 if (!ASSERT_GE(generate_packet(&tx_xsk, AF_XDP_CONSUMER_PORT), 0, in test_xdp_metadata()
A 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()
A Dcgrp_local_storage.c97 if (!ASSERT_GE(server_fd, 0, "start_server")) in test_attach_cgroup()
101 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_attach_cgroup()
183 if (!ASSERT_GE(iter_fd, 0, "iter_create")) in test_cgroup_iter_sleepable()
245 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup /cgrp_local_storage")) in test_cgrp_local_storage()
A 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()
/linux-6.3-rc2/tools/testing/selftests/filesystems/epoll/
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()
851 ASSERT_GE(efd[0], 0); in TEST()
3405 ASSERT_GE(efd, 0); in TEST()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
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(fd, 0) TH_LOG("socket failed"); in TEST_F()
/linux-6.3-rc2/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c632 ASSERT_GE(fd, 0); in TEST_F()
681 ASSERT_GE(fd, 0); in TEST_F()
711 ASSERT_GE(dfd, 0); in TEST_F()
987 ASSERT_GE(fd, 0); in TEST_F()
1052 ASSERT_GE(img_fd, 0); in FIXTURE_SETUP()
1115 ASSERT_GE(fd, 0); in TEST_F()
1116 ASSERT_GE(close(fd), 0); in TEST_F()
1141 ASSERT_GE(open_tree_fd, 0); in TEST_F()
1251 ASSERT_GE(open_tree_fd, 0); in TEST_F()
1281 ASSERT_GE(open_tree_fd, 0); in TEST_F()
[all …]
/linux-6.3-rc2/tools/testing/selftests/pidfd/
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()
A 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-6.3-rc2/tools/testing/selftests/core/
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()

Completed in 46 milliseconds

1234