Searched refs:proc_info (Results 1 - 9 of 9) sorted by relevance

/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServer.cpp480 CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response)
483 proc_info.GetProcessID(),
484 proc_info.GetParentProcessID(),
485 proc_info.GetUserID(),
486 proc_info.GetGroupID(),
487 proc_info.GetEffectiveUserID(),
488 proc_info.GetEffectiveGroupID());
490 response.PutCStringAsRawHex8(proc_info.GetName());
492 const ArchSpec &proc_arch = proc_info.GetArchitecture();
510 ProcessInstanceInfo proc_info;
359 assert(packet_len < (int)sizeof(packet)); return SendPacketNoLock (packet, packet_len); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::SendOKResponse () { return SendPacketNoLock (�, 2); } bool GDBRemoteCommunicationServer::HandshakeWithClient(Error *error_ptr) { return GetAck() == PacketResult::Success; } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qHostInfo (StringExtractorGDBRemote &packet) { StreamString response; ArchSpec host_arch (Host::GetArchitecture ()); const llvm::Triple &host_triple = host_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(host_triple.getTriple().c_str()); response.Printf (�,host_arch.GetAddressByteSize()); const char* distribution_id = host_arch.GetDistributionId ().AsCString (); if (distribution_id) { response.PutCString(�); response.PutCStringAsRawHex8(distribution_id); response.PutCString(�); } uint32_t cpu = host_arch.GetMachOCPUType(); uint32_t sub = host_arch.GetMachOCPUSubType(); if (cpu != LLDB_INVALID_CPUTYPE) response.Printf (�, cpu); if (sub != LLDB_INVALID_CPUTYPE) response.Printf (�, sub); if (cpu == ArchSpec::kCore_arm_any) response.Printf(�); else response.Printf(�); switch (lldb::endian::InlHostByteOrder()) { case eByteOrderBig: response.PutCString (�); break; case eByteOrderLittle: response.PutCString (�); break; case eByteOrderPDP: response.PutCString (�); break; default: response.PutCString (�); break; } uint32_t major = UINT32_MAX; uint32_t minor = UINT32_MAX; uint32_t update = UINT32_MAX; if (Host::GetOSVersion (major, minor, update)) { if (major != UINT32_MAX) { response.Printf(�, major); if (minor != UINT32_MAX) { response.Printf(�, minor); if (update != UINT32_MAX) response.Printf(�, update); } response.PutChar(�); } } std::string s; if (Host::GetOSBuildString (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } if (Host::GetOSKernelDescription (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } response.PutCString (�); response.PutCStringAsRawHex8(�); response.PutChar(�); return SendPacketNoLock (response.GetData(), response.GetSize()); } static void CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response) { response.Printf (� PRIu64 � PRIu64 �, proc_info.GetProcessID(), proc_info.GetParentProcessID(), proc_info.GetUserID(), proc_info.GetGroupID(), proc_info.GetEffectiveUserID(), proc_info.GetEffectiveGroupID()); response.PutCString (�); response.PutCStringAsRawHex8(proc_info.GetName()); response.PutChar(�); const ArchSpec &proc_arch = proc_info.GetArchitecture(); if (proc_arch.IsValid()) { const llvm::Triple &proc_triple = proc_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(proc_triple.getTriple().c_str()); response.PutChar(�); } } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qProcessInfoPID (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); lldb::pid_t pid = packet.GetU32 (LLDB_INVALID_PROCESS_ID); if (pid != LLDB_INVALID_PROCESS_ID) { ProcessInstanceInfo proc_info; if (Host::GetProcessInfo(pid, proc_info)) { StreamString response; CreateProcessInfoResponse (proc_info, response); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (1); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qfProcessInfo (StringExtractorGDBRemote &packet) { m_proc_infos_index = 0; m_proc_infos.Clear(); ProcessInstanceInfoMatch match_info; packet.SetFilePos(::strlen (�)); if (packet.GetChar() == �) { std::string key; std::string value; while (packet.GetNameColonValue(key, value)) { bool success = true; if (key.compare(�) == 0) { StringExtractor extractor; extractor.GetStringRef().swap(value); extractor.GetHexByteString (value); match_info.GetProcessInfo().GetExecutableFile().SetFile(value.c_str(), false); } else if (key.compare(�) == 0) { if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEquals); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchStartsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEndsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchContains); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchRegularExpression); } else { success = false; } } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetParentProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.SetMatchAllUsers(Args::StringToBoolean(value.c_str(), false, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().GetArchitecture().SetTriple (value.c_str(), NULL); } else { success = false; } if (!success) return SendErrorResponse (2); } } if (Host::FindProcesses (match_info, m_proc_infos)) { return Handle_qsProcessInfo (packet); } return SendErrorResponse (3); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qsProcessInfo (StringExtractorGDBRemote &packet) { if (m_proc_infos_index < m_proc_infos.GetSize()) { StreamString response; CreateProcessInfoResponse (m_proc_infos.GetProcessInfoAtIndex(m_proc_infos_index), response); ++m_proc_infos_index; return SendPacketNoLock (response.GetData(), response.GetSize()); } return SendErrorResponse (4); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qUserName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t uid = packet.GetU32 (UINT32_MAX); if (uid != UINT32_MAX) { std::string name; if (Host::GetUserName (uid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (5); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qGroupName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t gid = packet.GetU32 (UINT32_MAX); if (gid != UINT32_MAX) { std::string name; if (Host::GetGroupName (gid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (6); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qSpeedTest (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); std::string key; std::string value; bool success = packet.GetNameColonValue(key, value); if (success && key.compare(�) == 0) { uint32_t response_size = Args::StringToUInt32(value.c_str(), 0, 0, &success); if (success) { if (response_size == 0) return SendOKResponse(); StreamString response; uint32_t bytes_left = response_size; response.PutCString(�); while (bytes_left > 0) { if (bytes_left >= 26) argument
[all...]
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/Platform/FreeBSD/
H A DPlatformFreeBSD.h125 lldb_private::ProcessInstanceInfo &proc_info);
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.h82 lldb_private::ProcessInstanceInfo &proc_info);
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/Host/
H A DHost.h478 GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info);
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Commands/
H A DCommandObjectPlatform.cpp1439 ProcessInstanceInfo proc_info; local
1440 if (platform_sp->GetProcessInfo (pid, proc_info))
1443 proc_info.DumpAsTableRow(ostrm, platform_sp.get(), m_options.show_args, m_options.verbose);
1732 ProcessInstanceInfo proc_info; local
1733 if (platform_sp->GetProcessInfo (pid, proc_info))
1736 proc_info.Dump (ostrm, platform_sp.get());
/freebsd-10-stable/usr.bin/kdump/
H A Dkdump.c192 struct proc_info struct
194 TAILQ_ENTRY(proc_info) info;
199 static TAILQ_HEAD(trace_procs, proc_info) trace_procs;
463 struct proc_info *pi;
473 pi = malloc(sizeof(struct proc_info));
498 struct proc_info *pi;
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Target/
H A DProcess.cpp876 ProcessInstanceInfoMatch::Matches (const ProcessInstanceInfo &proc_info) const
878 if (!NameMatches (proc_info.GetName()))
882 m_match_info.GetProcessID() != proc_info.GetProcessID())
886 m_match_info.GetParentProcessID() != proc_info.GetParentProcessID())
890 m_match_info.GetUserID() != proc_info.GetUserID())
894 m_match_info.GetGroupID() != proc_info.GetGroupID())
898 m_match_info.GetEffectiveUserID() != proc_info.GetEffectiveUserID())
902 m_match_info.GetEffectiveGroupID() != proc_info.GetEffectiveGroupID())
906 !m_match_info.GetArchitecture().IsCompatibleMatch(proc_info.GetArchitecture()))
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/Target/
H A DPlatform.h465 GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &proc_info);
H A DProcess.h1119 Matches (const ProcessInstanceInfo &proc_info) const;

Completed in 101 milliseconds