/developtools/hiperf/test/unittest/common/native/ |
D | symbols_file_test.cpp | 37 void CheckSymbols(const std::unique_ptr<SymbolsFile> &symbolsFile) const; 43 std::unique_ptr<SymbolsFile> symbolsFile = SymbolsFile::CreateSymbolsFile(symbolsFileType); in LoadSymbols() local 44 EXPECT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DATA), true); in LoadSymbols() 45 return symbolsFile; in LoadSymbols() 50 std::unique_ptr<SymbolsFile> symbolsFile = SymbolsFile::CreateSymbolsFile(symbolsFileType); in TestLoadSymbols() local 51 EXPECT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DATA), true); in TestLoadSymbols() 52 return symbolsFile->LoadSymbols(path); in TestLoadSymbols() 78 void SymbolsFileTest::CheckSymbols(const std::unique_ptr<SymbolsFile> &symbolsFile) const in CheckSymbols() 80 auto symbols = symbolsFile->GetSymbols(); in CheckSymbols() 86 EXPECT_EQ(symbolsFile->GetSymbolWithVaddr(0x0).funcVaddr_, 0u); in CheckSymbols() [all …]
|
D | virtual_runtime_test.cpp | 146 for (const std::unique_ptr<SymbolsFile> &symbolsFile : runtime_->GetSymbolsFiles()) { variable 147 EXPECT_EQ(symbolsFile->GetBuildId().empty(), false); 346 auto &symbolsFile = runtime_->symbolsFiles_.emplace_back( variable 348 ASSERT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DWARF_DATA), true); 349 ASSERT_EQ(symbolsFile->LoadSymbols(TEST_DWARF_ELF), true); 350 symbolsFile->filePath_ = TEST_DWARF_ELF;
|
D | callstack_test.cpp | 661 auto &symbolsFile = symbolsFiles.emplace_back(SymbolsFile::CreateSymbolsFile( variable 663 ASSERT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DWARF_DATA), true); 664 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 666 symbolsFile->filePath_ = TEST_DWARF_MMAP.front().fileName;
|
D | report_protobuf_file_test.cpp | 336 const std::unique_ptr<SymbolsFile> &symbolsFile = in __anoncfc228cc0502() local 343 ASSERT_EQ(static_cast<size_t>(funcNameId) < symbolsFile->GetSymbols().size(), true); in __anoncfc228cc0502() 345 symbolsFile->GetSymbols().at(funcNameId).name_.data()); in __anoncfc228cc0502()
|
D | virtual_thread_test.cpp | 447 std::unique_ptr<SymbolsFile> symbolsFile = variable 449 ASSERT_NE(symbolsFile, nullptr); 450 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 453 symbolsFiles.emplace_back(std::move(symbolsFile));
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
D | symbols_file_test.cpp | 65 void CheckSymbols(const std::unique_ptr<SymbolsFile> &symbolsFile) const; 71 std::unique_ptr<SymbolsFile> symbolsFile = SymbolsFile::CreateSymbolsFile(symbolsFileType); in LoadSymbols() local 72 EXPECT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DATA), true); in LoadSymbols() 73 return symbolsFile; in LoadSymbols() 78 std::unique_ptr<SymbolsFile> symbolsFile = SymbolsFile::CreateSymbolsFile(symbolsFileType); in TestLoadSymbols() local 79 EXPECT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DATA), true); in TestLoadSymbols() 80 return symbolsFile->LoadSymbols(path); in TestLoadSymbols() 106 void SymbolsFileTest::CheckSymbols(const std::unique_ptr<SymbolsFile> &symbolsFile) const in CheckSymbols() 108 auto symbols = symbolsFile->GetSymbols(); in CheckSymbols() 114 EXPECT_EQ(symbolsFile->GetSymbolWithVaddr(0x0).funcVaddr_, 0u); in CheckSymbols() [all …]
|
D | callstack_test.cpp | 99 auto& symbolsFile = symbolsFiles[symbolFilePath]; variable 100 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 102 symbolsFile->filePath_ = TEST_DWARF_MMAP.front().fileName;
|
D | virtual_thread_test.cpp | 448 std::unique_ptr<SymbolsFile> symbolsFile = variable 450 ASSERT_NE(symbolsFile, nullptr); 451 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 454 symbolsFiles[symbolsFile->filePath_] = std::move(symbolsFile);
|
/developtools/hiperf/src/ |
D | virtual_runtime.cpp | 468 for (const auto &symbolsFile : symbolsFiles_) { in UpdateSymbols() local 469 if (symbolsFile->filePath_ == fileName) { in UpdateSymbols() 475 auto symbolsFile = SymbolsFile::CreateSymbolsFile(fileName); in UpdateSymbols() local 479 symbolsFile->setSymbolsFilePath(symbolsPaths_); // also load from search path in UpdateSymbols() 483 symbolsFiles_.emplace_back(std::move(symbolsFile)); in UpdateSymbols() 484 } else if (symbolsFile->LoadSymbols()) { in UpdateSymbols() 485 symbolsFiles_.emplace_back(std::move(symbolsFile)); in UpdateSymbols() 508 for (auto &symbolsFile : symbolsFiles_) { in GetKernelSymbol() local 509 if (symbolsFile->filePath_ == map.name_) { in GetKernelSymbol() 510 vaddrSymbol.symbolFileIndex_ = symbolsFile->id_; in GetKernelSymbol() [all …]
|
D | callstack.cpp | 72 bool CallStack::fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, const MemMapItem &mmap, in fillUDI() argument 82 symbolsFile.GetHDRSectionInfo(ehFrameHdrElfOffset, fdeTableElfOffset, fdeTableSize)) { in fillUDI() 131 symbolsFile.GetSectionInfo(ARM_EXIDX, SectionVaddr, SectionSize, SectionFileOffset)) { in fillUDI() 160 int CallStack::FindUnwindTable(SymbolsFile *symbolsFile, const MemMapItem &mmap, in FindUnwindTable() argument 164 HLOGM("try search debug info at %s", symbolsFile->filePath_.c_str()); in FindUnwindTable() 172 if (dynFileMap.find(symbolsFile->filePath_) == dynFileMap.end()) { in FindUnwindTable() 185 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable() 188 std::optional<unw_dyn_info_t> &odi = dynFileMap[symbolsFile->filePath_]; in FindUnwindTable() 197 HLOG_ASSERT_MESSAGE(dynFileMap.find(symbolsFile->filePath_) != dynFileMap.end(), "%s", in FindUnwindTable() 198 symbolsFile->filePath_.c_str()); in FindUnwindTable() [all …]
|
D | symbols_file.cpp | 1336 auto symbolsFile = CreateSymbolsFile(symbolFileStruct.filePath_); in LoadSymbolsFromSaved() local 1337 symbolsFile->filePath_ = symbolFileStruct.filePath_; in LoadSymbolsFromSaved() 1338 symbolsFile->symbolFileType_ = (SymbolsFileType)symbolFileStruct.symbolType_; in LoadSymbolsFromSaved() 1339 symbolsFile->textExecVaddr_ = symbolFileStruct.textExecVaddr_; in LoadSymbolsFromSaved() 1340 symbolsFile->textExecVaddrFileOffset_ = symbolFileStruct.textExecVaddrFileOffset_; in LoadSymbolsFromSaved() 1341 symbolsFile->buildId_ = symbolFileStruct.buildId_; in LoadSymbolsFromSaved() 1343 symbolsFile->symbols_.emplace_back(symbolStruct.vaddr_, symbolStruct.len_, in LoadSymbolsFromSaved() 1346 symbolsFile->AdjustSymbols(); // reorder in LoadSymbolsFromSaved() 1347 symbolsFile->debugInfoLoadResult_ = true; in LoadSymbolsFromSaved() 1348 HLOGV("load %zu symbol from SymbolFileStruct for file '%s'", symbolsFile->symbols_.size(), in LoadSymbolsFromSaved() [all …]
|
D | virtual_thread.cpp | 162 for (auto &symbolsFile : symbolsFiles_) { in FindSymbolsFileByMap() local 163 if (symbolsFile->filePath_ == inMap.name_) { in FindSymbolsFileByMap() 165 if (symbolsFile->LoadDebugInfo()) { in FindSymbolsFileByMap() 167 return symbolsFile.get(); in FindSymbolsFileByMap()
|
D | perf_file_writer.cpp | 460 for (auto &symbolsFile : symbolsFiles) { in AddSymbolsFeature() local 461 if (symbolsFile->SymbolsLoaded()) { in AddSymbolsFeature() 463 symbolsFile->ExportSymbolToFileFormat(symbolsFileStruct); in AddSymbolsFeature()
|
D | report_protobuf_file.cpp | 185 for (auto &symbolsFile : symbolsFiles) { in ProcessSymbolsFiles() local 190 message->set_path(symbolsFile->filePath_); in ProcessSymbolsFiles() 192 for (auto &symbol : symbolsFile->GetSymbols()) { in ProcessSymbolsFiles()
|
D | report_json_file.cpp | 284 for (const auto &symbolsFile : symbolsFiles) { in OutputJsonRuntimeInfo() local 285 jsonFilePaths.emplace_back(symbolsFile->filePath_); in OutputJsonRuntimeInfo()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | virtual_runtime.cpp | 272 auto symbolsFile = SymbolsFile::CreateSymbolsFile(fileName); in UpdateSymbols() local 276 symbolsFile->setSymbolsFilePath(symbolsPaths_); // also load from search path in UpdateSymbols() 280 symbolsFiles_[symbolsFile->filePath_] = std::move(symbolsFile); in UpdateSymbols() 281 } else if (symbolsFile->LoadSymbols()) { in UpdateSymbols() 282 symbolsFiles_[symbolsFile->filePath_] = std::move(symbolsFile); in UpdateSymbols() 307 auto& symbolsFile = search->second; in GetKernelSymbol() local 309 symbolsFile->GetVaddrInSymbols(ip, map.begin_, map.pageoffset_); in GetKernelSymbol() 313 if (!symbolsFile->SymbolsLoaded()) { in GetKernelSymbol() 314 symbolsFile->LoadSymbols(); in GetKernelSymbol() 316 Symbol foundSymbols = symbolsFile->GetSymbolWithVaddr(vaddrSymbol.fileVaddr_); in GetKernelSymbol() [all …]
|
D | call_stack.cpp | 71 bool CallStack::fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, const MemMapItem &mmap, in fillUDI() argument 84 symbolsFile.GetHDRSectionInfo(ehFrameHdrElfOffset, fdeTableElfOffset, fdeTableSize)) { in fillUDI() 125 symbolsFile.GetSectionInfo(ARM_EXIDX, SectionVaddr, SectionSize, SectionFileOffset)) { in fillUDI() 149 int CallStack::FindUnwindTable(SymbolsFile *symbolsFile, const MemMapItem &mmap, in FindUnwindTable() argument 153 HLOGV("try seach debug info at %s", symbolsFile->filePath_.c_str()); in FindUnwindTable() 161 if (dynFileMap.find(symbolsFile->filePath_) == dynFileMap.end()) { in FindUnwindTable() 163 std::optional<unw_dyn_info_t> &odi = dynFileMap[symbolsFile->filePath_]; in FindUnwindTable() 176 if (fillUDI(newdi, *symbolsFile, mmap, unwindInfoPtr->thread)) { in FindUnwindTable() 183 HLOG_ASSERT_MESSAGE(dynFileMap.find(symbolsFile->filePath_) != dynFileMap.end(), "%s", in FindUnwindTable() 184 symbolsFile->filePath_.c_str()); in FindUnwindTable() [all …]
|
D | virtual_thread.cpp | 175 auto& symbolsFile = search->second; in FindSymbolsFileByMap() local 177 symbolsFile->LoadDebugInfo(); in FindSymbolsFileByMap() 178 return symbolsFile.get(); in FindSymbolsFileByMap() 197 auto& symbolsFile = search->second; in FindSymbolsFileByName() local 199 symbolsFile->LoadDebugInfo(); in FindSymbolsFileByName() 200 return symbolsFile.get(); in FindSymbolsFileByName() 235 SymbolsFile *symbolsFile = FindSymbolsFileByName(curMemMaps->name_); in ReadRoMemory() local 236 if (symbolsFile != nullptr) { in ReadRoMemory() 239 …if (size == symbolsFile->ReadRoMemory(curMemMaps->maps_[itemIndex].FileOffsetFromAddr(vaddr), data… in ReadRoMemory()
|
D | symbols_file.cpp | 1247 auto symbolsFile = CreateSymbolsFile(symbolFileStruct.filePath_); in LoadSymbolsFromSaved() local 1248 symbolsFile->filePath_ = symbolFileStruct.filePath_; in LoadSymbolsFromSaved() 1249 symbolsFile->symbolFileType_ = (SymbolsFileType)symbolFileStruct.symbolType_; in LoadSymbolsFromSaved() 1250 symbolsFile->textExecVaddr_ = symbolFileStruct.textExecVaddr_; in LoadSymbolsFromSaved() 1251 symbolsFile->textExecVaddrFileOffset_ = symbolFileStruct.textExecVaddrFileOffset_; in LoadSymbolsFromSaved() 1252 symbolsFile->buildId_ = symbolFileStruct.buildId_; in LoadSymbolsFromSaved() 1254 symbolsFile->symbols_.emplace_back(symbolStruct.vaddr_, symbolStruct.len_, in LoadSymbolsFromSaved() 1257 symbolsFile->AdjustSymbols(); // reorder in LoadSymbolsFromSaved() 1258 HLOGV("load %zu symbol from SymbolFileStruct for file '%s'", symbolsFile->symbols_.size(), in LoadSymbolsFromSaved() 1259 symbolsFile->filePath_.c_str()); in LoadSymbolsFromSaved() [all …]
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | call_stack.h | 64 static bool fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, const MemMapItem &mmap, 79 static int FindUnwindTable(SymbolsFile *symbolsFile, const MemMapItem &mmap,
|
/developtools/hiperf/include/ |
D | callstack.h | 84 static bool fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, const MemMapItem &mmap, 99 static int FindUnwindTable(SymbolsFile *symbolsFile, const MemMapItem &mmap,
|
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/ |
D | perf_data_parser.cpp | 204 for (auto& symbolsFile : report_->virtualRuntime_.GetSymbolsFiles()) { in UpdateSymbolAndFilesData() local 205 … auto filePathIndex = traceDataCache_->dataDict_.GetStringIndex(symbolsFile->filePath_.c_str()); in UpdateSymbolAndFilesData() 207 for (auto& symbol : symbolsFile->GetSymbols()) { in UpdateSymbolAndFilesData()
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/ |
D | perf_data_parser.cpp | 201 for (auto& symbolsFile : report_->virtualRuntime_.GetSymbolsFiles()) { in UpdateSymbolAndFilesData() local 202 … auto filePathIndex = traceDataCache_->dataDict_.GetStringIndex(symbolsFile->filePath_.c_str()); in UpdateSymbolAndFilesData() 204 for (auto& symbol : symbolsFile->GetSymbols()) { in UpdateSymbolAndFilesData()
|