Lines Matching refs:std
194 std::shared_ptr<DfxMap> DfxMap::Create(std::string buf, size_t size)
199 auto map = std::make_shared<DfxMap>();
249 perms = std::string(permChs, sizeof(permChs));
301 std::string DfxMap::ToString()
304 std::string realMapName = name;
312 return std::string(buf);
315 void DfxMap::PermsToProts(const std::string perms, uint32_t& prots, uint32_t& flag)
318 if (perms.find("r") != std::string::npos) {
322 if (perms.find("w") != std::string::npos) {
326 if (perms.find("x") != std::string::npos) {
330 if (perms.find("p") != std::string::npos) {
332 } else if (perms.find("s") != std::string::npos) {
337 const std::shared_ptr<DfxHap> DfxMap::GetHap()
340 hap = std::make_shared<DfxHap>();
345 const std::shared_ptr<DfxElf> DfxMap::GetElf(pid_t pid)
358 shmmData = std::make_shared<std::vector<uint8_t>>(size);
364 elf = std::make_shared<DfxElf>(shmmData->data(), byte);
373 std::string DfxMap::GetElfName()
378 std::string soName = name;
385 void DfxMap::FormatMapName(pid_t pid, std::string& mapName)
392 mapName = "/proc/" + std::to_string(pid) + "/root" + mapName;
396 void DfxMap::UnFormatMapName(std::string& mapName)
401 if (startPos != std::string::npos) {