Home
last modified time | relevance | path

Searched refs:socket_name (Results 1 – 18 of 18) sorted by relevance

/external/perfetto/src/base/
Dunix_socket.cc78 bool MakeSockAddr(const std::string& socket_name, in MakeSockAddr() argument
82 const size_t name_len = socket_name.size(); in MakeSockAddr()
87 memcpy(addr->sun_path, socket_name.data(), name_len); in MakeSockAddr()
179 bool UnixSocketRaw::Bind(const std::string& socket_name) { in Bind() argument
183 if (!MakeSockAddr(socket_name, &addr, &addr_size)) in Bind()
187 PERFETTO_DPLOG("bind(%s)", socket_name.c_str()); in Bind()
200 bool UnixSocketRaw::Connect(const std::string& socket_name) { in Connect() argument
204 if (!MakeSockAddr(socket_name, &addr, &addr_size)) in Connect()
371 std::unique_ptr<UnixSocket> UnixSocket::Listen(const std::string& socket_name, in Listen() argument
376 if (!sock_raw || !sock_raw.Bind(socket_name)) in Listen()
[all …]
/external/perfetto/include/perfetto/base/
Dunix_socket.h66 bool Bind(const std::string& socket_name);
68 bool Connect(const std::string& socket_name);
187 static std::unique_ptr<UnixSocket> Listen(const std::string& socket_name,
202 static std::unique_ptr<UnixSocket> Connect(const std::string& socket_name,
310 void DoConnect(const std::string& socket_name);
/external/openssh/
Dssh-agent.c139 char socket_name[PATH_MAX]; variable
1159 if (socket_name[0]) in cleanup_socket()
1160 unlink(socket_name); in cleanup_socket()
1341 snprintf(socket_name, sizeof socket_name, "%s/agent.%ld", socket_dir, in main()
1346 strlcpy(socket_name, agentsocket, sizeof socket_name); in main()
1354 sock = unix_listener(socket_name, SSH_LISTEN_BACKLOG, 0); in main()
1357 *socket_name = '\0'; /* Don't unlink any existing file */ in main()
1371 printf(format, SSH_AUTHSOCKET_ENV_NAME, socket_name, in main()
1387 printf(format, SSH_AUTHSOCKET_ENV_NAME, socket_name, in main()
1394 if (setenv(SSH_AUTHSOCKET_ENV_NAME, socket_name, 1) == -1 || in main()
/external/perfetto/src/ipc/
Dclient_impl.cc38 std::unique_ptr<Client> Client::CreateInstance(const char* socket_name, in CreateInstance() argument
40 std::unique_ptr<Client> client(new ClientImpl(socket_name, task_runner)); in CreateInstance()
44 ClientImpl::ClientImpl(const char* socket_name, base::TaskRunner* task_runner) in ClientImpl() argument
47 sock_ = base::UnixSocket::Connect(socket_name, this, task_runner); in ClientImpl()
Dhost_impl.h39 HostImpl(const char* socket_name, base::TaskRunner*);
77 bool Initialize(const char* socket_name);
Dhost_impl.cc37 std::unique_ptr<Host> Host::CreateInstance(const char* socket_name, in CreateInstance() argument
39 std::unique_ptr<HostImpl> host(new HostImpl(socket_name, task_runner)); in CreateInstance()
62 HostImpl::HostImpl(const char* socket_name, base::TaskRunner* task_runner) in HostImpl() argument
66 sock_ = base::UnixSocket::Listen(socket_name, this, task_runner_); in HostImpl()
Dclient_impl.h44 ClientImpl(const char* socket_name, base::TaskRunner*);
/external/perfetto/test/
Dfake_producer.cc38 const char* socket_name, in Connect() argument
45 socket_name, this, "android.perfetto.FakeProducer", task_runner); in Connect()
Dend_to_end_shared_memory_fuzzer.cc66 void Connect(const char* socket_name, base::TaskRunner* task_runner) { in Connect() argument
68 socket_name, this, "android.perfetto.FakeProducer", task_runner); in Connect()
Dfake_producer.h38 void Connect(const char* socket_name,
/external/perfetto/src/traced/probes/
Dprobes_producer.cc154 const char* socket_name = socket_name_; in Restart() local
160 ConnectWithRetries(socket_name, task_runner); in Restart()
480 void ProbesProducer::ConnectWithRetries(const char* socket_name, in ConnectWithRetries() argument
486 socket_name_ = socket_name; in ConnectWithRetries()
Dprobes_producer.h64 void ConnectWithRetries(const char* socket_name,
/external/wayland/tests/
Dtest-compositor.c322 const char *socket_name; in display_create() local
332 socket_name = get_socket_name(); in display_create()
333 stat = wl_display_add_socket(d->wl_display, socket_name); in display_create()
/external/perfetto/include/perfetto/ipc/
Dclient.h47 static std::unique_ptr<Client> CreateInstance(const char* socket_name,
Dhost.h43 static std::unique_ptr<Host> CreateInstance(const char* socket_name,
/external/perfetto/src/profiling/memory/
Dheapprofd_producer.cc217 void HeapprofdProducer::ConnectWithRetries(const char* socket_name) { in ConnectWithRetries() argument
222 producer_sock_name_ = socket_name; in ConnectWithRetries()
261 const char* socket_name = producer_sock_name_; in Restart() local
267 ConnectWithRetries(socket_name); in Restart()
Dheapprofd_producer.h122 void ConnectWithRetries(const char* socket_name);
/external/autotest/frontend/afe/
Dmoblab_rpc_interface.py274 socket_name = socket_handle.getsockname()
275 if socket_name is not None:
277 return socket_name[0]