Home
last modified time | relevance | path

Searched refs:UnixSocketRaw (Results 1 – 15 of 15) sorted by relevance

/external/perfetto/include/perfetto/ext/base/
Dunix_socket.h88 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/
Dunix_socket.cc224 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 …]
Dunix_socket_unittest.cc204 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/
Dclient_api_factory_standalone.cc51 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()
Dclient_api_unittest.cc38 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()
Dclient_api_benchmark.cc36 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()
Dclient.h74 base::UnixSocketRaw sock,
77 static base::Optional<base::UnixSocketRaw> ConnectToHeapprofd(
98 Client(base::UnixSocketRaw sock,
128 base::UnixSocketRaw sock_;
Dclient.cc142 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()
Dclient_api_factory_android.cc47 perfetto::base::Optional<perfetto::base::UnixSocketRaw> sock = in ConstructClient()
Dwire_protocol_unittest.cc55 base::UnixSocketRaw send_sock(base::ScopedFile(sv[0]), in CopyFD()
58 base::UnixSocketRaw recv_sock(base::ScopedFile(sv[1]), in CopyFD()
Dwire_protocol.h39 class UnixSocketRaw; variable
Dunwinding.h76 base::UnixSocketRaw sock;
/external/perfetto/src/traced/probes/android_log/
Dandroid_log_data_source.h77 virtual base::UnixSocketRaw ConnectLogdrSocket();
117 base::UnixSocketRaw logdr_sock_;
Dandroid_log_data_source_unittest.cc45 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()
Dandroid_log_data_source.cc156 base::UnixSocketRaw AndroidLogDataSource::ConnectLogdrSocket() { in ConnectLogdrSocket()
157 auto socket = base::UnixSocketRaw::CreateMayFail(base::SockFamily::kUnix, in ConnectLogdrSocket()
161 return base::UnixSocketRaw(); in ConnectLogdrSocket()