• Home
  • Raw
  • Download

Lines Matching refs:info

133 bool CreateElfFromMemory(std::shared_ptr<unwindstack::Memory>& memory, map_info_t* info) {  in CreateElfFromMemory()  argument
135 if (info->name.empty()) { in CreateElfFromMemory()
136 cur_name = android::base::StringPrintf("anonymous_%" PRIx64, info->start); in CreateElfFromMemory()
138 … cur_name = android::base::StringPrintf("%s_%" PRIx64, basename(info->name.c_str()), info->start); in CreateElfFromMemory()
141 std::vector<uint8_t> buffer(info->end - info->start); in CreateElfFromMemory()
144 size_t bytes = memory->Read(info->start, buffer.data(), buffer.size()); in CreateElfFromMemory()
146 printf("Cannot read data from address %" PRIx64 " length %zu\n", info->start, buffer.size()); in CreateElfFromMemory()
163 info->name = cur_name; in CreateElfFromMemory()
168 bool CopyElfFromFile(map_info_t* info, bool* file_copied) { in CopyElfFromFile() argument
169 std::string cur_name = basename(info->name.c_str()); in CopyElfFromFile()
171 info->name = cur_name; in CopyElfFromFile()
175 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(info->name.c_str(), "r"), &fclose); in CopyElfFromFile()
177 perror((std::string("Cannot open ") + info->name).c_str()); in CopyElfFromFile()
198 info->name = cur_name; in CopyElfFromFile()
205 auto info = &maps_by_start[map_info->start()]; in FillInAndGetMapInfo() local
206 info->start = map_info->start(); in FillInAndGetMapInfo()
207 info->end = map_info->end(); in FillInAndGetMapInfo()
208 info->offset = map_info->offset(); in FillInAndGetMapInfo()
209 info->name = map_info->name(); in FillInAndGetMapInfo()
210 info->flags = map_info->flags(); in FillInAndGetMapInfo()
212 return info; in FillInAndGetMapInfo()
215 void SaveMapInformation(std::shared_ptr<unwindstack::Memory>& process_memory, map_info_t* info, in SaveMapInformation() argument
217 if (CopyElfFromFile(info, file_copied)) { in SaveMapInformation()
224 if (CreateElfFromMemory(process_memory, info)) { in SaveMapInformation()
229 if (!info->name.empty()) { in SaveMapInformation()
230 printf("%s\n", info->name.c_str()); in SaveMapInformation()
232 printf("anonymous:%" PRIx64 "\n", info->start); in SaveMapInformation()
278 auto info = FillInAndGetMapInfo(maps_by_start, map_info); in SaveData() local
280 SaveMapInformation(unwinder.GetProcessMemory(), info, &file_copied); in SaveData()
289 info = FillInAndGetMapInfo(maps_by_start, prev_map); in SaveData()
290 SaveMapInformation(unwinder.GetProcessMemory(), info, &file_copied); in SaveData()