/external/perfetto/include/perfetto/base/ |
D | unix_socket.h | 47 class UnixSocketRaw { 50 static UnixSocketRaw CreateMayFail(SockType t) { return UnixSocketRaw(t); } in CreateMayFail() 53 static std::pair<UnixSocketRaw, UnixSocketRaw> CreatePair(SockType); 56 UnixSocketRaw(); 60 UnixSocketRaw(ScopedFile, SockType); 62 ~UnixSocketRaw() = default; 63 UnixSocketRaw(UnixSocketRaw&&) noexcept = default; 64 UnixSocketRaw& operator=(UnixSocketRaw&&) = default; 101 explicit UnixSocketRaw(SockType); 103 UnixSocketRaw(const UnixSocketRaw&) = delete; [all …]
|
/external/perfetto/src/base/ |
D | unix_socket.cc | 103 void UnixSocketRaw::ShiftMsgHdr(size_t n, struct msghdr* msg) { in ShiftMsgHdr() 125 std::pair<UnixSocketRaw, UnixSocketRaw> UnixSocketRaw::CreatePair(SockType t) { in CreatePair() 128 return std::make_pair(UnixSocketRaw(), UnixSocketRaw()); in CreatePair() 130 return std::make_pair(UnixSocketRaw(ScopedFile(fds[0]), t), in CreatePair() 131 UnixSocketRaw(ScopedFile(fds[1]), t)); in CreatePair() 134 UnixSocketRaw::UnixSocketRaw() = default; 136 UnixSocketRaw::UnixSocketRaw(SockType type) in UnixSocketRaw() function in perfetto::base::UnixSocketRaw 137 : UnixSocketRaw(ScopedFile(socket(AF_UNIX, GetUnixSockType(type), 0)), in UnixSocketRaw() 140 UnixSocketRaw::UnixSocketRaw(ScopedFile fd, SockType type) in UnixSocketRaw() function in perfetto::base::UnixSocketRaw 154 void UnixSocketRaw::SetBlocking(bool is_blocking) { in SetBlocking() [all …]
|
D | unix_socket_unittest.cc | 270 auto sock_raw = UnixSocketRaw::CreateMayFail(SockType::kStream); in TEST_F() 573 UnixSocketRaw::ShiftMsgHdr(1, &hdr); in TEST_F() 581 UnixSocketRaw::ShiftMsgHdr(base::ArraySize(hello) - 1, &hdr); in TEST_F() 587 UnixSocketRaw::ShiftMsgHdr(base::ArraySize(world), &hdr); in TEST_F() 607 UnixSocketRaw::ShiftMsgHdr(base::ArraySize(hello) + 1, &hdr); in TEST_F() 613 UnixSocketRaw::ShiftMsgHdr(base::ArraySize(world) - 1, &hdr); in TEST_F() 633 UnixSocketRaw::ShiftMsgHdr(base::ArraySize(world) + base::ArraySize(hello), in TEST_F() 646 UnixSocketRaw send_sock; in TEST_F() 647 UnixSocketRaw recv_sock; in TEST_F() 648 std::tie(send_sock, recv_sock) = UnixSocketRaw::CreatePair(SockType::kStream); in TEST_F()
|
/external/perfetto/src/profiling/memory/ |
D | client.h | 62 base::UnixSocketRaw sock, 65 static base::Optional<base::UnixSocketRaw> ConnectToHeapprofd( 87 Client(base::UnixSocketRaw sock, 110 base::UnixSocketRaw sock_;
|
D | client.cc | 102 base::Optional<base::UnixSocketRaw> Client::ConnectToHeapprofd( in ConnectToHeapprofd() 104 auto sock = base::UnixSocketRaw::CreateMayFail(base::SockType::kStream); in ConnectToHeapprofd() 122 base::UnixSocketRaw sock, in CreateAndHandshake() 217 Client::Client(base::UnixSocketRaw sock, in Client()
|
D | malloc_hooks.cc | 242 perfetto::base::Optional<perfetto::base::UnixSocketRaw> sock = in CreateClientForCentralDaemon() 253 perfetto::base::UnixSocketRaw parent_sock; in CreateClientAndPrivateDaemon() 254 perfetto::base::UnixSocketRaw child_sock; in CreateClientAndPrivateDaemon() 255 std::tie(parent_sock, child_sock) = perfetto::base::UnixSocketRaw::CreatePair( in CreateClientAndPrivateDaemon()
|
D | wire_protocol_unittest.cc | 59 base::UnixSocketRaw send_sock(base::ScopedFile(sv[0]), in CopyFD() 61 base::UnixSocketRaw recv_sock(base::ScopedFile(sv[1]), in CopyFD()
|
D | wire_protocol.h | 37 class UnixSocketRaw; variable
|
D | unwinding.h | 149 base::UnixSocketRaw sock;
|
/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source.h | 76 virtual base::UnixSocketRaw ConnectLogdrSocket(); 116 base::UnixSocketRaw logdr_sock_;
|
D | android_log_data_source_unittest.cc | 44 MOCK_METHOD0(ConnectLogdrSocket, base::UnixSocketRaw()); 61 base::UnixSocketRaw send_sock; in StartAndSimulateLogd() 62 base::UnixSocketRaw recv_sock; in StartAndSimulateLogd() 66 std::tie(send_sock, recv_sock) = base::UnixSocketRaw::CreatePair(kSockType); in StartAndSimulateLogd()
|
D | android_log_data_source.cc | 140 base::UnixSocketRaw AndroidLogDataSource::ConnectLogdrSocket() { in ConnectLogdrSocket() 141 auto socket = base::UnixSocketRaw::CreateMayFail(base::SockType::kSeqPacket); in ConnectLogdrSocket() 144 return base::UnixSocketRaw(); in ConnectLogdrSocket()
|