/external/perfetto/include/perfetto/ext/base/ |
D | unix_socket.h | 88 class UnixSocketRaw { 91 static UnixSocketRaw CreateMayFail(SockFamily family, SockType type); 95 static std::pair<UnixSocketRaw, UnixSocketRaw> CreatePairPosix(SockFamily, 100 UnixSocketRaw(); 104 UnixSocketRaw(ScopedSocketHandle, SockFamily, SockType); 106 ~UnixSocketRaw() = default; 107 UnixSocketRaw(UnixSocketRaw&&) noexcept = default; 108 UnixSocketRaw& operator=(UnixSocketRaw&&) = default; 163 UnixSocketRaw(SockFamily, SockType); 165 UnixSocketRaw(const UnixSocketRaw&) = delete; [all …]
|
/external/perfetto/src/base/ |
D | unix_socket.cc | 224 void UnixSocketRaw::ShiftMsgHdrPosix(size_t n, struct msghdr* msg) { in ShiftMsgHdrPosix() 246 std::pair<UnixSocketRaw, UnixSocketRaw> UnixSocketRaw::CreatePairPosix( in CreatePairPosix() 251 return std::make_pair(UnixSocketRaw(), UnixSocketRaw()); in CreatePairPosix() 253 return std::make_pair(UnixSocketRaw(ScopedFile(fds[0]), family, type), in CreatePairPosix() 254 UnixSocketRaw(ScopedFile(fds[1]), family, type)); in CreatePairPosix() 259 UnixSocketRaw UnixSocketRaw::CreateMayFail(SockFamily family, SockType type) { in CreateMayFail() 262 return UnixSocketRaw(); in CreateMayFail() 263 return UnixSocketRaw(std::move(fd), family, type); in CreateMayFail() 266 UnixSocketRaw::UnixSocketRaw() = default; 268 UnixSocketRaw::UnixSocketRaw(SockFamily family, SockType type) in UnixSocketRaw() function in perfetto::base::UnixSocketRaw [all …]
|
D | unix_socket_unittest.cc | 204 UnixSocketRaw::CreateMayFail(kTestSocket.family(), SockType::kStream); in TEST_F() 747 UnixSocketRaw::ShiftMsgHdrPosix(1, &hdr); in TEST_F() 755 UnixSocketRaw::ShiftMsgHdrPosix(base::ArraySize(hello) - 1, &hdr); in TEST_F() 761 UnixSocketRaw::ShiftMsgHdrPosix(base::ArraySize(world), &hdr); in TEST_F() 781 UnixSocketRaw::ShiftMsgHdrPosix(base::ArraySize(hello) + 1, &hdr); in TEST_F() 787 UnixSocketRaw::ShiftMsgHdrPosix(base::ArraySize(world) - 1, &hdr); in TEST_F() 807 UnixSocketRaw::ShiftMsgHdrPosix( in TEST_F() 819 UnixSocketRaw send_sock; in TEST_F() 820 UnixSocketRaw recv_sock; in TEST_F() 822 UnixSocketRaw::CreatePairPosix(kTestSocket.family(), SockType::kStream); in TEST_F()
|
/external/perfetto/src/profiling/memory/ |
D | client_api_factory_standalone.cc | 51 base::UnixSocketRaw* g_client_sock; 79 g_client_sock = new base::UnixSocketRaw(); in StartHeapprofdIfStatic() 80 base::UnixSocketRaw srv_sock; in StartHeapprofdIfStatic() 81 base::UnixSocketRaw cli_sock; in StartHeapprofdIfStatic() 83 std::tie(cli_sock, srv_sock) = base::UnixSocketRaw::CreatePairPosix( in StartHeapprofdIfStatic() 162 base::UnixSocketRaw srv_session_sock; in ConstructClient() 163 base::UnixSocketRaw client_session_sock; in ConstructClient() 166 base::UnixSocketRaw::CreatePairPosix(base::SockFamily::kUnix, in ConstructClient()
|
D | client_api_unittest.cc | 38 base::UnixSocketRaw& GlobalServerSocket() { in GlobalServerSocket() 39 static base::UnixSocketRaw* srv_sock = new base::UnixSocketRaw; in GlobalServerSocket() 44 base::UnixSocketRaw destroy; in DisconnectGlobalServerSocket() 58 base::UnixSocketRaw cli_sock; in ConstructClient() 59 base::UnixSocketRaw& srv_sock = GlobalServerSocket(); in ConstructClient() 60 std::tie(cli_sock, srv_sock) = base::UnixSocketRaw::CreatePairPosix( in ConstructClient()
|
D | client_api_benchmark.cc | 36 base::UnixSocketRaw& GlobalServerSocket() { in GlobalServerSocket() 37 static base::UnixSocketRaw* srv_sock = new base::UnixSocketRaw; in GlobalServerSocket() 42 base::UnixSocketRaw destroy; in DisconnectGlobalServerSocket() 56 base::UnixSocketRaw cli_sock; in ConstructClient() 57 base::UnixSocketRaw& srv_sock = GlobalServerSocket(); in ConstructClient() 58 std::tie(cli_sock, srv_sock) = base::UnixSocketRaw::CreatePairPosix( in ConstructClient()
|
D | client.h | 74 base::UnixSocketRaw sock, 77 static base::Optional<base::UnixSocketRaw> ConnectToHeapprofd( 98 Client(base::UnixSocketRaw sock, 128 base::UnixSocketRaw sock_;
|
D | client.cc | 142 base::Optional<base::UnixSocketRaw> Client::ConnectToHeapprofd( in ConnectToHeapprofd() 144 auto sock = base::UnixSocketRaw::CreateMayFail(base::SockFamily::kUnix, in ConnectToHeapprofd() 163 base::UnixSocketRaw sock, in CreateAndHandshake() 253 Client::Client(base::UnixSocketRaw sock, in Client()
|
D | client_api_factory_android.cc | 47 perfetto::base::Optional<perfetto::base::UnixSocketRaw> sock = in ConstructClient()
|
D | wire_protocol_unittest.cc | 55 base::UnixSocketRaw send_sock(base::ScopedFile(sv[0]), in CopyFD() 58 base::UnixSocketRaw recv_sock(base::ScopedFile(sv[1]), in CopyFD()
|
D | wire_protocol.h | 39 class UnixSocketRaw; variable
|
D | unwinding.h | 76 base::UnixSocketRaw sock;
|
/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source.h | 77 virtual base::UnixSocketRaw ConnectLogdrSocket(); 117 base::UnixSocketRaw logdr_sock_;
|
D | android_log_data_source_unittest.cc | 45 MOCK_METHOD0(ConnectLogdrSocket, base::UnixSocketRaw()); 62 base::UnixSocketRaw send_sock; in StartAndSimulateLogd() 63 base::UnixSocketRaw recv_sock; in StartAndSimulateLogd() 66 std::tie(send_sock, recv_sock) = base::UnixSocketRaw::CreatePairPosix( in StartAndSimulateLogd()
|
D | android_log_data_source.cc | 156 base::UnixSocketRaw AndroidLogDataSource::ConnectLogdrSocket() { in ConnectLogdrSocket() 157 auto socket = base::UnixSocketRaw::CreateMayFail(base::SockFamily::kUnix, in ConnectLogdrSocket() 161 return base::UnixSocketRaw(); in ConnectLogdrSocket()
|