Searched refs:sock (Results 1 - 3 of 3) sorted by relevance
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/ |
H A D | ipc_unix_socket.cpp | 34 os::unique_fd::UniqueFd sock(PANDA_FAILURE_RETRY(::socket(AF_UNIX, SOCK_STREAM, 0))); in CreateUnixServerSocket() 37 if (PANDA_FAILURE_RETRY(::setsockopt(sock.Get(), SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) == -1) { in CreateUnixServerSocket() 53 if (PANDA_FAILURE_RETRY(::bind(sock.Get(), sockAddr, sizeof(serverAddr))) == -1) { in CreateUnixServerSocket() 58 if (::listen(sock.Get(), backlog) == -1) { in CreateUnixServerSocket() 63 return sock; in CreateUnixServerSocket() 68 os::unique_fd::UniqueFd sock(PANDA_FAILURE_RETRY(::socket(AF_UNIX, SOCK_STREAM, 0))); in CreateUnixClientSocket() 69 if (!sock.IsValid()) { in CreateUnixClientSocket() 85 if (PANDA_FAILURE_RETRY(::connect(sock.Get(), sockAddr, sizeof(serverAddr))) == -1) { in CreateUnixClientSocket() 90 return sock; in CreateUnixClientSocket()
|
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ |
H A D | profiling_data.cpp | 38 os::unique_fd::UniqueFd sock(ipc::CreateUnixClientSocket()); in DumpAndResetFeatures() 39 if (!sock.IsValid()) { in DumpAndResetFeatures() 50 if (!SendMessage(sock.Get(), msgVersion)) { in DumpAndResetFeatures() 60 if (!SendMessage(sock.Get(), msgAppInfo)) { in DumpAndResetFeatures() 75 if (!SendMessage(sock.Get(), msgFeatureData)) { in DumpAndResetFeatures()
|
/arkcompiler/runtime_core/static_core/dprof/daemon/ |
H A D | main.cpp | 33 bool CheckVersion(const os::unique_fd::UniqueFd &sock) in CheckVersion() argument 37 if (RecvMessage(sock.Get(), msg) <= 0) { in CheckVersion() 57 static std::unique_ptr<AppData> ProcessingConnect(const os::unique_fd::UniqueFd &sock) in ProcessingConnect() argument 59 if (!CheckVersion(sock)) { in ProcessingConnect() 67 if (RecvMessage(sock.Get(), msg) <= 0) { in ProcessingConnect() 85 int ret = RecvMessage(sock.Get(), msg); in ProcessingConnect() 247 os::unique_fd::UniqueFd sock(ipc::CreateUnixServerSocket(maxPendingConnectionsQueue)); in Main() 248 if (!sock.IsValid()) { in Main() 259 os::unique_fd::UniqueFd clientSock(::accept4(sock.Get(), nullptr, nullptr, SOCK_CLOEXEC)); in Main()
|
Completed in 2 milliseconds