/tools/testing/selftests/filesystems/epoll/ |
A D | epoll_wakeup_test.c | 19 int sfd[4]; member 166 int sfd[2]; in TEST() local 197 int sfd[2]; in TEST() local 228 int sfd[4]; in TEST() local 266 int sfd[4]; in TEST() local 304 int sfd[2]; in TEST() local 343 int sfd[2]; in TEST() local 383 int sfd[4]; in TEST() local 429 int sfd[4]; in TEST() local 845 int sfd[2]; in TEST() local [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
A D | setget_sockopt.c | 45 int sfd, cfd; in test_tcp() local 54 cfd = connect_to_fd(sfd, 0); in test_tcp() 56 close(sfd); in test_tcp() 59 close(sfd); in test_tcp() 73 int sfd; in test_udp() local 81 close(sfd); in test_udp() 100 fd = connect_to_fd(sfd, 0); in test_ktls() 108 close(sfd); in test_ktls() 109 sfd = -1; in test_ktls() 154 close(sfd); in test_ktls() [all …]
|
A D | lwt_seg6local.c | 122 int sfd, cfd; in test_lwt_seg6local() local 132 sfd = start_server_str(AF_INET6, SOCK_DGRAM, "fb00::6", SERVER_PORT, NULL); in test_lwt_seg6local() 133 if (!ASSERT_OK_FD(sfd, "start server")) in test_lwt_seg6local() 162 bytes = read(sfd, buf, sizeof(buf)); in test_lwt_seg6local() 170 close(sfd); in test_lwt_seg6local()
|
A D | net_timestamping.c | 150 int sfd = -1, cfd = -1; in test_tcp() local 181 sfd = start_server(family, SOCK_STREAM, in test_tcp() 183 if (!ASSERT_OK_FD(sfd, "start_server")) in test_tcp() 186 cfd = connect_to_fd(sfd, 0); in test_tcp() 220 if (sfd >= 0) in test_tcp() 221 close(sfd); in test_tcp()
|
A D | lwt_ip_encap.c | 350 int sfd, cfd, afd; in test_gso_fix() local 361 sfd = start_server_str(family, SOCK_STREAM, ip_addr, GSO_TCP_PORT, NULL); in test_gso_fix() 362 if (!ASSERT_OK_FD(sfd, "start server")) in test_gso_fix() 378 afd = accept(sfd, NULL, NULL); in test_gso_fix() 399 close(sfd); in test_gso_fix()
|
/tools/testing/selftests/bpf/ |
A D | test_maps.c | 673 if (sfd[i] < 0) in test_sockmap() 693 err, i, sfd[i]); in test_sockmap() 705 if (sfd[i] < 0) in test_sockmap() 726 sfd[i] = accept(sfd[i - 4], NULL, NULL); in test_sockmap() 727 if (sfd[i] < 0) { in test_sockmap() 743 close(sfd[i]); in test_sockmap() 767 i, sfd[i]); in test_sockmap() 976 FD_SET(sfd[3], &w); in test_sockmap() 1121 close(sfd[i]); in test_sockmap() 1131 close(sfd[i]); in test_sockmap() [all …]
|
/tools/testing/selftests/bpf/benchs/ |
A D | bench_sockmap.c | 102 #define sfd fds[4] macro 162 err = getsockname(ctx.sfd, (struct sockaddr *)&addr, &addr_len); in create_pair() 179 pfd = accept(ctx.sfd, NULL, NULL); in create_pair() 196 ctx.sfd = socket(AF_INET, SOCK_STREAM, 0); in create_sockets() 197 if (ctx.sfd < 0) { in create_sockets() 199 return ctx.sfd; in create_sockets() 201 err = setsockopt(ctx.sfd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in create_sockets() 207 err = bind(ctx.sfd, (struct sockaddr *)&addr, addr_len); in create_sockets() 213 err = listen(ctx.sfd, SOMAXCONN); in create_sockets()
|
/tools/testing/selftests/net/ |
A D | tls.c | 116 int sfd, ret; in ulp_sock_pair() local 130 ret = listen(sfd, 10); in ulp_sock_pair() 142 close(sfd); in ulp_sock_pair() 2486 int sfd, ret, fd; in TEST() local 2504 ret = listen(sfd, 10); in TEST() 2532 close(sfd); in TEST() 2614 int sfd, ret, fd; in TEST() local 2628 ret = listen(sfd, 10); in TEST() 2663 close(sfd); in TEST() 2690 close(sfd); in TEST() [all …]
|