/tools/testing/selftests/bpf/ |
D | tcp_client.py | 7 import socket, time 16 except (socket.error) as e: return b'' 25 except (socket.error) as e: n = 0 35 sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) 38 except socket.error as e:
|
D | tcp_server.py | 7 import socket, time 16 except (socket.error) as e: return b'' 25 except (socket.error) as e: n = 0 39 serverSocket = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) 42 except socket.error as msg:
|
D | network_helpers.c | 79 fd = socket(family, type, 0); in start_server() 121 fd = socket(addr_in->sin_family, SOCK_STREAM, 0); in fastopen_connect() 176 fd = socket(addr_in->sin_family, type, 0); in connect_to_fd()
|
D | test_bpftool.py | 8 import socket 47 for iface in socket.if_nameindex():
|
D | test_socket_cookie.c | 31 fd = socket(AF_INET6, SOCK_STREAM, 0); in start_server() 67 fd = socket(AF_INET6, SOCK_STREAM, 0); in connect_to_server()
|
/tools/bpf/bpftool/Documentation/ |
D | bpftool-cgroup.rst | 84 **ingress** ingress path of the inet socket (since 4.10); 85 **egress** egress path of the inet socket (since 4.10); 86 **sock_create** opening of an inet socket (since 4.10); 87 **sock_ops** various socket operations (since 4.12); 89 **bind4** call to bind(2) for an inet4 socket (since 4.17); 90 **bind6** call to bind(2) for an inet6 socket (since 4.17); 91 **post_bind4** return from bind(2) for an inet4 socket (since 4.17); 92 **post_bind6** return from bind(2) for an inet6 socket (since 4.17); 93 **connect4** call to connect(2) for an inet4 socket (since 4.17); 94 **connect6** call to connect(2) for an inet6 socket (since 4.17); [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_netlink.c | 10 static __attribute__((noinline)) struct inode *SOCK_INODE(struct socket *socket) in SOCK_INODE() argument 12 return &container_of(socket, struct socket_alloc, socket)->vfs_inode; in SOCK_INODE() 22 struct socket *sk; in dump_netlink()
|
D | local_storage.c | 43 struct socket { struct 82 int BPF_PROG(socket_bind, struct socket *sock, struct sockaddr *address, in BPF_PROG() 108 int BPF_PROG(socket_post_create, struct socket *sock, int family, int type, in BPF_PROG()
|
D | bpf_iter_udp4.c | 13 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() 20 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
|
D | bpf_iter_udp6.c | 20 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() 27 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
|
/tools/perf/tests/ |
D | hists_filter.c | 21 int socket; member 27 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, .socket = 0 }, 29 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, .socket = 0 }, 31 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, .socket = 0 }, 33 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, .socket = 0 }, /* will be merged */ 35 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, .socket = 1 }, 37 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 1 }, 39 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, .socket = 2 }, 41 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, .socket = 2 }, 43 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, .socket = 3 }, [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | udp_limit.c | 35 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 39 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 47 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
|
D | sockmap_ktls.c | 16 s = socket(family, SOCK_STREAM, 0); in tcp_server() 55 cli = socket(family, SOCK_STREAM, 0); in test_sockmap_ktls_disconnect_after_delete()
|
/tools/testing/selftests/net/ |
D | run_netsocktests | 7 ./socket
|
D | psock_lib.h | 79 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open() 80 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
|
D | .gitignore | 4 socket
|
D | reuseport_bpf.c | 160 fd[i] = socket(p.recv_family, p.protocol, 0); in build_recv_group() 194 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from() 314 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 317 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 370 fd = socket(p.recv_family, p.protocol, 0); in test_filter_no_reuseport() 395 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 398 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind()
|
D | fin_ack_lat.c | 42 sock = socket(AF_INET, SOCK_STREAM, 0); in client() 121 sock = socket(AF_INET, SOCK_STREAM, 0); in main()
|
D | txring_overwrite.c | 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx() 92 fdt = socket(PF_PACKET, SOCK_RAW, 0); in setup_tx()
|
D | reuseport_addr_any.c | 75 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 147 fd = socket(family, proto, 0); in connect_and_send() 249 test_fd = socket(AF_INET, proto, 0); in test_proto()
|
D | tcp_inq.c | 124 server_fd = socket(family, SOCK_STREAM, 0); in main() 140 fd = socket(family, SOCK_STREAM, 0); in main()
|
/tools/perf/trace/beauty/ |
D | socket.sh | 20 egrep $regex ${header_dir}/socket.h | \
|
D | Build | 17 perf-y += socket.o
|
/tools/testing/vsock/ |
D | vsock_test.c | 37 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_stream_connection_reset() 76 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_stream_bind_only_client() 114 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_stream_bind_only_server()
|
/tools/testing/selftests/proc/ |
D | setns-dcache.c | 61 if (socket(AF_UNIX, SOCK_STREAM, 0) == -1) { in main()
|