/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
D | symbols_file_test.cpp | 68 void CheckSymbols(const std::unique_ptr<SymbolsFile> &symbolsFile) const; 74 std::unique_ptr<SymbolsFile> symbolsFile = SymbolsFile::CreateSymbolsFile(symbolsFileType); in LoadSymbols() local 75 EXPECT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DATA), true); in LoadSymbols() 76 return symbolsFile; in LoadSymbols() 81 std::unique_ptr<SymbolsFile> symbolsFile = SymbolsFile::CreateSymbolsFile(symbolsFileType); in TestLoadSymbols() local 82 EXPECT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DATA), true); in TestLoadSymbols() 83 return symbolsFile->LoadSymbols(nullptr, path); in TestLoadSymbols() 109 void SymbolsFileTest::CheckSymbols(const std::unique_ptr<SymbolsFile> &symbolsFile) const in CheckSymbols() 111 auto symbols = symbolsFile->GetSymbols(); in CheckSymbols() 117 EXPECT_EQ(symbolsFile->GetSymbolWithVaddr(0x0).funcVaddr_, 0u); in CheckSymbols() [all …]
|
D | callstack_test.cpp | 65 auto& symbolsFile = symbolsFiles[symbolFilePath]; variable 66 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 68 symbolsFile->filePath_ = TEST_DWARF_MMAP.front().fileName;
|
D | virtual_thread_test.cpp | 367 std::unique_ptr<SymbolsFile> symbolsFile = variable 369 ASSERT_NE(symbolsFile, nullptr); 370 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 373 symbolsFiles[symbolsFile->filePath_] = std::move(symbolsFile);
|
/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(nullptr, 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 | 151 for (const std::unique_ptr<SymbolsFile> &symbolsFile : runtime_->GetSymbolsFiles()) { variable 152 if (symbolsFile->GetBuildId().empty()) { 356 auto &symbolsFile = runtime_->symbolsFiles_.emplace_back( variable 358 ASSERT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DWARF_DATA), true); 359 ASSERT_EQ(symbolsFile->LoadSymbols(nullptr, TEST_DWARF_ELF), true); 360 symbolsFile->filePath_ = TEST_DWARF_ELF;
|
D | callstack_test.cpp | 626 auto &symbolsFile = symbolsFiles.emplace_back(SymbolsFile::CreateSymbolsFile( variable 628 ASSERT_EQ(symbolsFile->setSymbolsFilePath(PATH_RESOURCE_TEST_DWARF_DATA), true); 629 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 631 symbolsFile->filePath_ = TEST_DWARF_MMAP.front().fileName;
|
D | virtual_thread_test.cpp | 373 std::unique_ptr<SymbolsFile> symbolsFile = variable 375 ASSERT_NE(symbolsFile, nullptr); 376 ASSERT_EQ(symbolsFile->LoadSymbols(), true); 379 symbolsFiles.emplace_back(std::move(symbolsFile));
|
D | report_protobuf_file_test.cpp | 336 const std::unique_ptr<SymbolsFile> &symbolsFile = in __anonc60d4f8d0502() local 343 ASSERT_EQ(static_cast<size_t>(funcNameId) < symbolsFile->GetSymbols().size(), true); in __anonc60d4f8d0502() 345 symbolsFile->GetSymbols().at(funcNameId).name_.data()); in __anonc60d4f8d0502()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | virtual_runtime.cpp | 273 auto symbolsFile = SymbolsFile::CreateSymbolsFile(fileName); in UpdateSymbols() local 277 symbolsFile->setSymbolsFilePath(symbolsPaths_); // also load from search path in UpdateSymbols() 281 symbolsFiles_[symbolsFile->filePath_] = std::move(symbolsFile); in UpdateSymbols() 282 } else if (symbolsFile->LoadSymbols()) { in UpdateSymbols() 283 symbolsFiles_[symbolsFile->filePath_] = std::move(symbolsFile); in UpdateSymbols() 298 auto symbolsFile = SymbolsFile::CreateSymbolsFile(map->name); in UpdateHapSymbols() local 299 if (symbolsFile == nullptr) { in UpdateHapSymbols() 304 if (!symbolsFile->LoadDebugInfo(map)) { in UpdateHapSymbols() 310 symbolsFile->LoadSymbols(map); in UpdateHapSymbols() 312 symbolsFiles_[symbolsFile->filePath_] = (std::move(symbolsFile)); in UpdateHapSymbols() [all …]
|
D | call_stack.cpp | 92 bool CallStack::fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, std::shared_ptr<DfxMap> map, in fillUDI() argument 105 symbolsFile.GetHDRSectionInfo(ehFrameHdrElfOffset, fdeTableElfOffset, fdeTableSize)) { in fillUDI() 144 symbolsFile.GetSectionInfo(ARM_EXIDX, SectionVaddr, SectionSize, SectionFileOffset)) { in fillUDI() 168 int CallStack::FindUnwindTable(SymbolsFile *symbolsFile, std::shared_ptr<DfxMap> map, in FindUnwindTable() argument 172 HLOGV("try seach debug info at %s", symbolsFile->filePath_.c_str()); in FindUnwindTable() 180 if (dynFileMap.find(symbolsFile->filePath_) == dynFileMap.end()) { in FindUnwindTable() 182 std::optional<unw_dyn_info_t> &odi = dynFileMap[symbolsFile->filePath_]; in FindUnwindTable() 195 if (fillUDI(newdi, *symbolsFile, map, unwindInfoPtr->thread)) { in FindUnwindTable() 202 HLOG_ASSERT_MESSAGE(dynFileMap.find(symbolsFile->filePath_) != dynFileMap.end(), "%s", in FindUnwindTable() 203 symbolsFile->filePath_.c_str()); in FindUnwindTable() [all …]
|
D | virtual_thread.cpp | 137 auto& symbolsFile = search->second; in FindSymbolsFileByMap() local 139 symbolsFile->LoadDebugInfo(inMap); in FindSymbolsFileByMap() 140 return symbolsFile.get(); in FindSymbolsFileByMap() 159 auto& symbolsFile = search->second; in FindSymbolsFileByName() local 161 symbolsFile->LoadDebugInfo(); in FindSymbolsFileByName() 162 return symbolsFile.get(); in FindSymbolsFileByName() 197 SymbolsFile *symbolsFile = FindSymbolsFileByMap((curMemMaps->GetMaps())[itemIndex]); in ReadRoMemory() local 198 if (symbolsFile != nullptr) { in ReadRoMemory() 202 map->elf = symbolsFile->GetElfFile(); in ReadRoMemory()
|
D | symbols_file.cpp | 888 auto symbolsFile = CreateSymbolsFile(symbolFileStruct.filePath_); in LoadSymbolsFromSaved() local 889 symbolsFile->filePath_ = symbolFileStruct.filePath_; in LoadSymbolsFromSaved() 890 symbolsFile->symbolFileType_ = (SymbolsFileType)symbolFileStruct.symbolType_; in LoadSymbolsFromSaved() 891 symbolsFile->textExecVaddr_ = symbolFileStruct.textExecVaddr_; in LoadSymbolsFromSaved() 892 symbolsFile->textExecVaddrFileOffset_ = symbolFileStruct.textExecVaddrFileOffset_; in LoadSymbolsFromSaved() 893 symbolsFile->buildId_ = symbolFileStruct.buildId_; in LoadSymbolsFromSaved() 895 symbolsFile->symbols_.emplace_back(symbolStruct.vaddr_, symbolStruct.len_, in LoadSymbolsFromSaved() 898 symbolsFile->AdjustSymbols(); // reorder in LoadSymbolsFromSaved() 899 HLOGV("load %zu symbol from SymbolFileStruct for file '%s'", symbolsFile->symbols_.size(), in LoadSymbolsFromSaved() 900 symbolsFile->filePath_.c_str()); in LoadSymbolsFromSaved() [all …]
|
/developtools/hiperf/src/ |
D | virtual_runtime.cpp | 189 auto symbolsFile = SymbolsFile::CreateSymbolsFile(map->name); in UpdateHapSymbols() local 190 if (symbolsFile == nullptr) { in UpdateHapSymbols() 195 if (!symbolsFile->LoadDebugInfo(map)) { in UpdateHapSymbols() 201 symbolsFile->LoadSymbols(map); in UpdateHapSymbols() 203 symbolsFiles_.emplace_back(std::move(symbolsFile)); in UpdateHapSymbols() 783 for (const auto &symbolsFile : symbolsFiles_) { in UpdateSymbols() local 784 if (symbolsFile->filePath_ == fileName) { in UpdateSymbols() 790 auto symbolsFile = SymbolsFile::CreateSymbolsFile(fileName); in UpdateSymbols() local 791 …if (enableDebugInfoSymbolic_ && symbolsFile->symbolFileType_ == SymbolsFileType::SYMBOL_ELF_FILE) { in UpdateSymbols() 792 symbolsFile->EnableMiniDebugInfo(); in UpdateSymbols() [all …]
|
D | callstack.cpp | 99 bool CallStack::fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, std::shared_ptr<DfxMap> map, in fillUDI() argument 109 symbolsFile.GetHDRSectionInfo(ehFrameHdrElfOffset, fdeTableElfOffset, fdeTableSize)) { in fillUDI() 157 symbolsFile.GetSectionInfo(ARM_EXIDX, SectionVaddr, SectionSize, SectionFileOffset)) { in fillUDI() 186 int CallStack::FindUnwindTable(SymbolsFile *symbolsFile, std::shared_ptr<DfxMap> map, in FindUnwindTable() argument 190 HLOGM("try search debug info at %s", symbolsFile->filePath_.c_str()); in FindUnwindTable() 198 if (dynFileMap.find(symbolsFile->filePath_) == dynFileMap.end()) { in FindUnwindTable() 211 if (fillUDI(newdi, *symbolsFile, map, unwindInfoPtr->thread)) { in FindUnwindTable() 214 std::optional<unw_dyn_info_t> &odi = dynFileMap[symbolsFile->filePath_]; in FindUnwindTable() 223 HLOG_ASSERT_MESSAGE(dynFileMap.find(symbolsFile->filePath_) != dynFileMap.end(), "%s", in FindUnwindTable() 224 symbolsFile->filePath_.c_str()); in FindUnwindTable() [all …]
|
D | symbols_file.cpp | 1078 auto symbolsFile = CreateSymbolsFile(symbolFileStruct.filePath_); in LoadSymbolsFromSaved() local 1079 symbolsFile->filePath_ = symbolFileStruct.filePath_; in LoadSymbolsFromSaved() 1080 symbolsFile->symbolFileType_ = (SymbolsFileType)symbolFileStruct.symbolType_; in LoadSymbolsFromSaved() 1081 symbolsFile->textExecVaddr_ = symbolFileStruct.textExecVaddr_; in LoadSymbolsFromSaved() 1082 symbolsFile->textExecVaddrFileOffset_ = symbolFileStruct.textExecVaddrFileOffset_; in LoadSymbolsFromSaved() 1083 symbolsFile->buildId_ = symbolFileStruct.buildId_; in LoadSymbolsFromSaved() 1085 symbolsFile->symbols_.emplace_back(symbolStruct.vaddr_, symbolStruct.len_, in LoadSymbolsFromSaved() 1088 symbolsFile->AdjustSymbols(); // reorder in LoadSymbolsFromSaved() 1089 symbolsFile->debugInfoLoadResult_ = true; in LoadSymbolsFromSaved() 1090 symbolsFile->symbolsLoaded_ = true; // skip unneccessary steps in LoadSymbolsFromSaved() [all …]
|
D | virtual_thread.cpp | 145 for (auto &symbolsFile : symbolsFiles_) { in FindSymbolsFileByMap() local 146 if (symbolsFile->filePath_ == inMap->name) { in FindSymbolsFileByMap() 148 if (symbolsFile->LoadDebugInfo(inMap)) { in FindSymbolsFileByMap() 150 return symbolsFile.get(); in FindSymbolsFileByMap()
|
D | perf_file_writer.cpp | 470 for (auto &symbolsFile : symbolsFiles) { in AddSymbolsFeature() local 471 if (symbolsFile->SymbolsLoaded()) { in AddSymbolsFeature() 473 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 | 285 for (const auto &symbolsFile : symbolsFiles) { in OutputJsonRuntimeInfo() local 286 jsonFilePaths.emplace_back(symbolsFile->filePath_); in OutputJsonRuntimeInfo()
|
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/ |
D | htrace_native_hook_parser.h | 40 … bool NativeHookReloadElfSymbolTable(const std::vector<std::unique_ptr<SymbolsFile>>& symbolsFile) in NativeHookReloadElfSymbolTable() argument 42 return nativeHookFilter_->NativeHookReloadElfSymbolTable(symbolsFile); in NativeHookReloadElfSymbolTable()
|
D | htrace_parser.cpp | 101 auto symbolsFile = in ParserFileSO() local 103 symbolsFile->setSymbolsFilePath(directory); in ParserFileSO() 104 symbolsFile->LoadSymbols(absoluteFilePath); in ParserFileSO() 105 symbolsFiles_.emplace_back(std::move(symbolsFile)); in ParserFileSO()
|
/developtools/hiperf/include/ |
D | callstack.h | 88 static bool fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, std::shared_ptr<DfxMap> map, 103 static int FindUnwindTable(SymbolsFile *symbolsFile, std::shared_ptr<DfxMap> map, 134 …static int FillUnwindTable(SymbolsFile *symbolsFile, std::shared_ptr<DfxMap> map, UnwindInfo *unwi…
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | call_stack.h | 72 … static bool fillUDI(unw_dyn_info_t &di, SymbolsFile &symbolsFile, std::shared_ptr<DfxMap> mapmmap, 87 static int FindUnwindTable(SymbolsFile *symbolsFile, std::shared_ptr<DfxMap> mapmap, 114 …static int FillUnwindTable(SymbolsFile *symbolsFile, std::shared_ptr<DfxMap> map, UnwindInfo *unwi…
|
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_base.cpp | 222 for (const auto& symbolsFile : symbolsFiles) { in EBPFReloadElfSymbolTable() local 226 if (EndWith(originFilePath, symbolsFile->filePath_)) { in EBPFReloadElfSymbolTable() 235 auto dfxSymbol = symbolsFile->GetSymbolWithVaddr(vaddrs[row]); in EBPFReloadElfSymbolTable()
|
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/ |
D | perf_data_parser.cpp | 562 for (auto& symbolsFile : report_->virtualRuntime_.GetSymbolsFiles()) { in UpdateSymbolAndFilesData() local 563 … auto filePathIndex = traceDataCache_->dataDict_.GetStringIndex(symbolsFile->filePath_.c_str()); in UpdateSymbolAndFilesData() 565 for (auto& symbol : symbolsFile->GetSymbols()) { in UpdateSymbolAndFilesData() 570 if (symbolsFile->GetSymbols().size() == 0) { in UpdateSymbolAndFilesData()
|