Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 119) sorted by relevance

12345

/tools/testing/selftests/bpf/
Dtcp_client.py7 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:
Dtcp_server.py7 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:
Dnetwork_helpers.c79 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()
Dtest_bpftool.py8 import socket
47 for iface in socket.if_nameindex():
Dtest_socket_cookie.c31 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/
Dbpftool-cgroup.rst84 **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/
Dbpf_iter_netlink.c10 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()
Dlocal_storage.c43 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()
Dbpf_iter_udp4.c13 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()
Dbpf_iter_udp6.c20 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/
Dhists_filter.c21 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/
Dudp_limit.c35 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()
Dsockmap_ktls.c16 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/
Drun_netsocktests7 ./socket
Dpsock_lib.h79 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.gitignore4 socket
Dreuseport_bpf.c160 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()
Dfin_ack_lat.c42 sock = socket(AF_INET, SOCK_STREAM, 0); in client()
121 sock = socket(AF_INET, SOCK_STREAM, 0); in main()
Dtxring_overwrite.c79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
92 fdt = socket(PF_PACKET, SOCK_RAW, 0); in setup_tx()
Dreuseport_addr_any.c75 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()
Dtcp_inq.c124 server_fd = socket(family, SOCK_STREAM, 0); in main()
140 fd = socket(family, SOCK_STREAM, 0); in main()
/tools/perf/trace/beauty/
Dsocket.sh20 egrep $regex ${header_dir}/socket.h | \
DBuild17 perf-y += socket.o
/tools/testing/vsock/
Dvsock_test.c37 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/
Dsetns-dcache.c61 if (socket(AF_UNIX, SOCK_STREAM, 0) == -1) { in main()

12345