Home
last modified time | relevance | path

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

/external/perfetto/include/perfetto/base/
Dunix_socket.h47 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/
Dunix_socket.cc103 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 …]
Dunix_socket_unittest.cc270 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/
Dclient.h62 base::UnixSocketRaw sock,
65 static base::Optional<base::UnixSocketRaw> ConnectToHeapprofd(
87 Client(base::UnixSocketRaw sock,
110 base::UnixSocketRaw sock_;
Dclient.cc102 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()
Dmalloc_hooks.cc242 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()
Dwire_protocol_unittest.cc59 base::UnixSocketRaw send_sock(base::ScopedFile(sv[0]), in CopyFD()
61 base::UnixSocketRaw recv_sock(base::ScopedFile(sv[1]), in CopyFD()
Dwire_protocol.h37 class UnixSocketRaw; variable
Dunwinding.h149 base::UnixSocketRaw sock;
/external/perfetto/src/traced/probes/android_log/
Dandroid_log_data_source.h76 virtual base::UnixSocketRaw ConnectLogdrSocket();
116 base::UnixSocketRaw logdr_sock_;
Dandroid_log_data_source_unittest.cc44 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()
Dandroid_log_data_source.cc140 base::UnixSocketRaw AndroidLogDataSource::ConnectLogdrSocket() { in ConnectLogdrSocket()
141 auto socket = base::UnixSocketRaw::CreateMayFail(base::SockType::kSeqPacket); in ConnectLogdrSocket()
144 return base::UnixSocketRaw(); in ConnectLogdrSocket()