Home
last modified time | relevance | path

Searched refs:symbolsFile (Results 1 – 23 of 23) sorted by relevance

/developtools/hiperf/test/unittest/common/native/
Dsymbols_file_test.cpp37 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 …]
Dvirtual_runtime_test.cpp146 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;
Dcallstack_test.cpp661 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;
Dreport_protobuf_file_test.cpp336 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()
Dvirtual_thread_test.cpp447 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/
Dsymbols_file_test.cpp65 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 …]
Dcallstack_test.cpp99 auto& symbolsFile = symbolsFiles[symbolFilePath]; variable
100 ASSERT_EQ(symbolsFile->LoadSymbols(), true);
102 symbolsFile->filePath_ = TEST_DWARF_MMAP.front().fileName;
Dvirtual_thread_test.cpp448 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/
Dvirtual_runtime.cpp468 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 …]
Dcallstack.cpp72 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 …]
Dsymbols_file.cpp1336 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 …]
Dvirtual_thread.cpp162 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()
Dperf_file_writer.cpp460 for (auto &symbolsFile : symbolsFiles) { in AddSymbolsFeature() local
461 if (symbolsFile->SymbolsLoaded()) { in AddSymbolsFeature()
463 symbolsFile->ExportSymbolToFileFormat(symbolsFileStruct); in AddSymbolsFeature()
Dreport_protobuf_file.cpp185 for (auto &symbolsFile : symbolsFiles) { in ProcessSymbolsFiles() local
190 message->set_path(symbolsFile->filePath_); in ProcessSymbolsFiles()
192 for (auto &symbol : symbolsFile->GetSymbols()) { in ProcessSymbolsFiles()
Dreport_json_file.cpp284 for (const auto &symbolsFile : symbolsFiles) { in OutputJsonRuntimeInfo() local
285 jsonFilePaths.emplace_back(symbolsFile->filePath_); in OutputJsonRuntimeInfo()
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_runtime.cpp272 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 …]
Dcall_stack.cpp71 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 …]
Dvirtual_thread.cpp175 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()
Dsymbols_file.cpp1247 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/
Dcall_stack.h64 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/
Dcallstack.h84 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/
Dperf_data_parser.cpp204 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/
Dperf_data_parser.cpp201 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()