/external/perfetto/include/perfetto/ext/base/ |
D | unix_socket.h | 63 enum class SockType { kStream = 100, kDgram, kSeqPacket }; enum 91 static UnixSocketRaw CreateMayFail(SockFamily family, SockType type); 96 SockType); 104 UnixSocketRaw(ScopedSocketHandle, SockFamily, SockType); 119 SockType type() const { return type_; } in type() 163 UnixSocketRaw(SockFamily, SockType); 173 SockType type_ = SockType::kStream; 258 SockType); 266 SockType); 276 SockType, [all …]
|
/external/rust/crates/nix/test/sys/ |
D | test_socket.rs | 138 use nix::sys::socket::{socket, AddressFamily, SockType, SockFlag}; in test_getsockname() 143 let sock = socket(AddressFamily::Unix, SockType::Stream, SockFlag::empty(), None) in test_getsockname() 154 use nix::sys::socket::{socketpair, AddressFamily, SockType, SockFlag}; in test_socketpair() 156 let (fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()) in test_socketpair() 202 let (fd2, fd1) = socketpair(AddressFamily::Unix, SockType::Stream, in stream() 216 SockType::Datagram, in udp() 223 SockType::Datagram, in udp() 256 SockType::Datagram, in gso() 267 SockType::Datagram, in gso() 305 SockType::Datagram, in gro() [all …]
|
D | test_sockopt.rs | 2 use nix::sys::socket::{socket, sockopt, getsockopt, setsockopt, AddressFamily, SockType, SockFlag, … 13 let s = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in is_so_mark_functional() 21 let fd = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), SockProtocol::Udp) in test_so_buf() 44 let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in test_tcp_congestion() 62 let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in test_bindtodevice() 75 …let fd = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), SockProtocol::Tcp).unwra… in test_so_tcp_keepalive()
|
/external/perfetto/src/base/ |
D | unix_socket_unittest.cc | 91 kTestSocket.family(), SockType::kStream); in TEST_F() 104 kTestSocket.family(), SockType::kStream); in TEST_F() 121 kTestSocket.family(), SockType::kStream); in TEST_F() 142 kTestSocket.family(), SockType::kStream); in TEST_F() 147 kTestSocket.family(), SockType::kStream); in TEST_F() 204 UnixSocketRaw::CreateMayFail(kTestSocket.family(), SockType::kStream); in TEST_F() 208 kTestSocket.family(), SockType::kStream); in TEST_F() 214 kTestSocket.family(), SockType::kStream); in TEST_F() 242 kTestSocket.family(), SockType::kStream); in TEST_F() 260 kTestSocket.family(), SockType::kStream); in TEST_F() [all …]
|
D | unix_socket.cc | 118 inline int GetSockType(SockType type) { in GetSockType() 125 case SockType::kStream: in GetSockType() 127 case SockType::kDgram: in GetSockType() 129 case SockType::kSeqPacket: in GetSockType() 198 ScopedSocketHandle CreateSocketHandle(SockFamily family, SockType type) { in CreateSocketHandle() 248 SockType type) { in CreatePairPosix() 259 UnixSocketRaw UnixSocketRaw::CreateMayFail(SockFamily family, SockType type) { in CreateMayFail() 268 UnixSocketRaw::UnixSocketRaw(SockFamily family, SockType type) in UnixSocketRaw() 273 SockType type) in UnixSocketRaw() 371 PERFETTO_DCHECK(type_ == SockType::kStream || type_ == SockType::kSeqPacket); in Listen() [all …]
|
/external/rust/crates/nix/src/sys/socket/ |
D | sockopt.rs | 265 sockopt_impl!(GetOnly, SockType, libc::SOL_SOCKET, libc::SO_TYPE, super::SockType); 648 … let (a, b) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap(); in can_get_peercred_on_unix_socket() 660 … let (a, b) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap(); in is_socket_type_unix() 661 let a_type = getsockopt(a, super::SockType).unwrap(); in is_socket_type_unix() 662 assert_eq!(a_type, SockType::Stream); in is_socket_type_unix() 672 let s = socket(AddressFamily::Inet, SockType::Datagram, SockFlag::empty(), None).unwrap(); in is_socket_type_dgram() 673 let s_type = getsockopt(s, super::SockType).unwrap(); in is_socket_type_dgram() 674 assert_eq!(s_type, SockType::Datagram); in is_socket_type_dgram() 686 let s = socket(AddressFamily::Inet, SockType::Stream, SockFlag::empty(), None).unwrap(); in can_get_listen_on_tcp_socket()
|
D | mod.rs | 58 pub enum SockType { enum 1410 pub fn socket<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType, flags: SockFlag, … in socket() argument 1430 pub fn socketpair<T: Into<Option<SockProtocol>>>(domain: AddressFamily, ty: SockType, protocol: T, in socketpair() argument
|
/external/perfetto/src/profiling/memory/ |
D | client_api_factory_standalone.cc | 84 base::SockFamily::kUnix, base::SockType::kStream); in StartHeapprofdIfStatic() 167 base::SockType::kStream); in ConstructClient()
|
D | wire_protocol_unittest.cc | 57 base::SockType::kStream); in CopyFD() 60 base::SockType::kStream); in CopyFD()
|
D | main.cc | 105 &task_runner, base::SockFamily::kUnix, base::SockType::kStream); in StartCentralHeapprofd()
|
D | client_api_unittest.cc | 61 base::SockFamily::kUnix, base::SockType::kStream); in ConstructClient()
|
D | client_api_benchmark.cc | 59 base::SockFamily::kUnix, base::SockType::kStream); in ConstructClient()
|
D | client.cc | 145 base::SockType::kStream); in ConnectToHeapprofd()
|
D | unwinding.cc | 386 base::SockFamily::kUnix, base::SockType::kStream); in HandleHandoffSocket()
|
D | heapprofd_producer.cc | 238 base::SockType::kStream); in AdoptSocket()
|
/external/perfetto/test/ |
D | producer_socket_fuzzer.cc | 66 &task_runner, base::SockFamily::kUnix, base::SockType::kStream); in FuzzSharedMemory()
|
/external/perfetto/src/profiling/perf/ |
D | proc_descriptors.h | 76 base::SockFamily::kUnix, base::SockType::kStream); in AndroidRemoteDescriptorGetter()
|
/external/perfetto/src/ipc/ |
D | client_impl.cc | 62 base::SockType::kStream, base::SockPeerCredMode::kIgnore); in ClientImpl() 79 kClientSockFamily, base::SockType::kStream, in TryConnect()
|
D | host_impl.cc | 77 kHostSockFamily, base::SockType::kStream); in HostImpl() 84 kHostSockFamily, base::SockType::kStream); in HostImpl()
|
D | host_impl_unittest.cc | 95 base::SockType::kStream); in FakeClient()
|
D | client_impl_unittest.cc | 110 kTestSocket.family(), base::SockType::kStream); in FakeHost()
|
/external/perfetto/src/trace_processor/rpc/ |
D | httpd.cc | 140 base::SockType::kStream); in Run() 148 base::SockType::kStream); in Run()
|
/external/rust/crates/tokio/tests/ |
D | io_async_fd.rs | 139 use nix::sys::socket::{self, AddressFamily, SockFlag, SockType}; in socketpair() 143 SockType::Stream, in socketpair()
|
/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source_unittest.cc | 67 base::SockFamily::kUnix, base::SockType::kDgram); in StartAndSimulateLogd()
|
D | android_log_data_source.cc | 158 base::SockType::kSeqPacket); in ConnectLogdrSocket()
|