| /llvm-project-15.0.7/lldb/source/Target/ |
| H A D | ModuleCache.cpp | 37 std::string GetEscapedHostname(const char *hostname) { in GetEscapedHostname() argument 38 if (hostname == nullptr) in GetEscapedHostname() 39 hostname = "unknown"; in GetEscapedHostname() 40 std::string result(hostname); in GetEscapedHostname() 128 const char *hostname, in CreateHostSysRootModuleLink() argument 133 JoinPath(JoinPath(root_dir_spec, hostname), in CreateHostSysRootModuleLink() 191 Status ModuleCache::Put(const FileSpec &root_dir_spec, const char *hostname, in Put() argument 208 root_dir_spec, hostname, target_file, module_file_path, true); in Put() 241 auto error = CreateHostSysRootModuleLink(root_dir_spec, hostname, in Get() 270 const char *hostname, in GetAndPut() argument [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Target/ |
| H A D | ModuleCacheTest.cpp | 34 void TryGetAndPut(const FileSpec &cache_dir, const char *hostname, 60 static FileSpec GetSysrootView(FileSpec spec, const char *hostname) { in GetSysrootView() argument 61 spec.AppendPathComponent(hostname); in GetSysrootView() 72 static void VerifyDiskState(const FileSpec &cache_dir, const char *hostname) { in VerifyDiskState() argument 78 FileSpec sysroot_view = GetSysrootView(cache_dir, hostname); in VerifyDiskState() 85 const char *hostname, bool expect_download) { in TryGetAndPut() argument 96 cache_dir, hostname, module_spec, in TryGetAndPut()
|
| /llvm-project-15.0.7/lldb/source/Host/posix/ |
| H A D | HostInfoPosix.cpp | 32 char hostname[PATH_MAX]; in GetHostname() local 33 hostname[sizeof(hostname) - 1] = '\0'; in GetHostname() 34 if (::gethostname(hostname, sizeof(hostname) - 1) == 0) { in GetHostname() 35 s.assign(hostname); in GetHostname()
|
| /llvm-project-15.0.7/lldb/include/lldb/Utility/ |
| H A D | UriParser.h | 19 llvm::StringRef hostname; member 24 return port == R.port && scheme == R.scheme && hostname == R.hostname &&
|
| /llvm-project-15.0.7/lldb/include/lldb/Target/ |
| H A D | ModuleCache.h | 54 Status GetAndPut(const FileSpec &root_dir_spec, const char *hostname, 61 Status Put(const FileSpec &root_dir_spec, const char *hostname, 65 Status Get(const FileSpec &root_dir_spec, const char *hostname,
|
| /llvm-project-15.0.7/lldb/test/API/commands/platform/connect/ |
| H A D | TestPlatformConnect.py | 19 hostname = socket.getaddrinfo("localhost", 0, proto=socket.IPPROTO_TCP)[0][4][0] 20 listen_url = "[%s]:0"%hostname 41 connect_url = "connect://[%s]:%s" % (hostname, socket_id)
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | Socket.cpp | 193 ret.hostname = matches[1].str(); in DecodeHostAndPort() 195 if (ret.hostname.front() == '[' && ret.hostname.back() == ']') in DecodeHostAndPort() 196 ret.hostname = ret.hostname.substr(1, ret.hostname.size() - 2); in DecodeHostAndPort() 380 return OS << '[' << HP.hostname << ']' << ':' << HP.port; in operator <<()
|
| H A D | UDPSocket.cpp | 75 …int err = ::getaddrinfo(host_port->hostname.c_str(), std::to_string(host_port->port).c_str(), &hin… in Connect() 84 host_port->hostname.c_str(), host_port->port, err, gai_strerror(err)); in Connect() 111 …const bool bind_addr_success = (host_port->hostname == "127.0.0.1" || host_port->hostname == "loca… in Connect()
|
| H A D | TCPSocket.cpp | 161 SocketAddress::GetAddressInfo(host_port->hostname.c_str(), nullptr, in Connect() 196 if (host_port->hostname == "*") in Listen() 197 host_port->hostname = "0.0.0.0"; in Listen() 199 host_port->hostname.c_str(), nullptr, AF_UNSPEC, SOCK_STREAM, IPPROTO_TCP); in Listen()
|
| H A D | SocketAddress.cpp | 221 SocketAddress::GetAddressInfo(const char *hostname, const char *servname, in GetAddressInfo() argument 234 int err = ::getaddrinfo(hostname, servname, &hints, &service_info_list); in GetAddressInfo()
|
| /llvm-project-15.0.7/lldb/test/API/commands/target/auto-install-main-executable/ |
| H A D | TestAutoInstallMainExecutable.py | 24 hostname = socket.getaddrinfo("localhost", 0, proto=socket.IPPROTO_TCP)[0][4][0] 25 listen_url = "[%s]:0"%hostname 43 connect_url = "connect://[%s]:%s" % (hostname, socket_id)
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | UriParser.cpp | 21 OS << U.scheme << "://[" << U.hostname << ']'; in operator <<() 55 ret.hostname = host_port.substr(1, pos - 1); in Parse() 60 std::tie(ret.hostname, host_port) = host_port.split(':'); in Parse()
|
| /llvm-project-15.0.7/openmp/runtime/test/affinity/format/ |
| H A D | fields_values.c | 115 char hostname[256]; in check_host() local 116 my_gethostname(hostname, buffer_size); in check_host() 122 check(streqls(host, hostname)); in check_host()
|
| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | Socket.h | 51 std::string hostname; member 55 return port == R.port && hostname == R.hostname;
|
| H A D | SocketAddress.h | 38 GetAddressInfo(const char *hostname, const char *servname, int ai_family,
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunicationServerPlatform.cpp | 161 const lldb_private::Args &args, std::string hostname, lldb::pid_t &pid, in LaunchGDBServer() argument 179 if (hostname.empty()) in LaunchGDBServer() 180 hostname = "127.0.0.1"; in LaunchGDBServer() 183 LLDB_LOGF(log, "Launching debugserver with: %s:%u...", hostname.c_str(), in LaunchGDBServer() 202 url << '[' << parsed_uri->hostname.str() << "]:" << *port; in LaunchGDBServer() 236 std::string hostname; in Handle_qLaunchGDBServer() local 243 hostname = std::string(value); in Handle_qLaunchGDBServer() 254 LaunchGDBServer(Args(), hostname, debugserver_pid, port, socket_name); in Handle_qLaunchGDBServer()
|
| H A D | GDBRemoteCommunicationServerPlatform.h | 92 Status LaunchGDBServer(const lldb_private::Args &args, std::string hostname,
|
| H A D | GDBRemoteCommunication.cpp | 856 Status GDBRemoteCommunication::StartListenThread(const char *hostname, in StartListenThread() argument 862 if (hostname && hostname[0]) in StartListenThread() 863 snprintf(listen_url, sizeof(listen_url), "listen://%s:%i", hostname, port); in StartListenThread()
|
| H A D | GDBRemoteCommunication.h | 219 Status StartListenThread(const char *hostname = "127.0.0.1",
|
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | sysinfo.cc | 422 TCHAR hostname[COUNT] = {'\0'}; in GetSystemName() local 424 if (!GetComputerName(hostname, &DWCOUNT)) return std::string(""); in GetSystemName() 426 str = std::string(hostname, DWCOUNT); in GetSystemName() 431 std::wstring wStr(hostname, DWCOUNT); in GetSystemName() 450 char hostname[HOST_NAME_MAX]; in GetSystemName() 451 int retVal = gethostname(hostname, HOST_NAME_MAX); in GetSystemName() 453 return std::string(hostname); in GetSystemName()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/Android/ |
| H A D | PlatformAndroidRemoteGDBServer.cpp | 120 if (parsed_url->hostname != "localhost") in ConnectRemote() 121 m_device_id = parsed_url->hostname.str(); in ConnectRemote()
|
| H A D | PlatformAndroid.cpp | 154 if (parsed_url->hostname != "localhost") in ConnectRemote() 155 m_device_id = parsed_url->hostname.str(); in ConnectRemote()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/gdb-server/ |
| H A D | PlatformRemoteGDBServer.cpp | 234 m_platform_hostname = parsed_url->hostname.str(); in ConnectRemote() 786 const char *hostname, in MakeUrl() argument 789 result.Printf("%s://[%s]", scheme, hostname); in MakeUrl()
|
| H A D | PlatformRemoteGDBServer.h | 176 virtual std::string MakeUrl(const char *scheme, const char *hostname,
|
| /llvm-project-15.0.7/lldb/source/Commands/ |
| H A D | CommandObjectPlatform.cpp | 344 std::string hostname; in DoExecute() local 346 hostname.assign(hostname_cstr); in DoExecute() 351 if (hostname.empty()) in DoExecute() 355 ostrm.Printf("Disconnected from \"%s\"\n", hostname.c_str()); in DoExecute()
|