Searched refs:phdr (Results 1 – 10 of 10) sorted by relevance
/developtools/hiperf/src/ |
D | program_header.cpp | 24 std::unique_ptr<ProgramHeader> phdr {new (std::nothrow) ProgramHeader()}; in MakeUnique() local 25 if (phdr == nullptr) { in MakeUnique() 29 if (!phdr->Init(phdrBuf, bufSize)) { in MakeUnique() 34 return phdr; in MakeUnique()
|
D | symbols_file.cpp | 358 for (const auto &phdr : elfFile->phdrs_) { in LoadDebugInfo() local 359 if ((phdr->type_ == PT_LOAD) && (phdr->flags_ & PF_X)) { in LoadDebugInfo() 361 if (textExecVaddr_ != std::min(textExecVaddr_, phdr->vaddr_)) { in LoadDebugInfo() 362 textExecVaddr_ = std::min(textExecVaddr_, phdr->vaddr_); in LoadDebugInfo() 363 textExecVaddrFileOffset_ = phdr->offset_; in LoadDebugInfo() 771 for (const auto &phdr : elfFile->phdrs_) { in LoadElfSymbols() local 772 if ((phdr->type_ == PT_LOAD) && (phdr->flags_ & PF_X)) { in LoadElfSymbols() 774 if (textExecVaddr_ != std::min(textExecVaddr_, phdr->vaddr_)) { in LoadElfSymbols() 775 textExecVaddr_ = std::min(textExecVaddr_, phdr->vaddr_); in LoadElfSymbols() 776 textExecVaddrFileOffset_ = phdr->offset_; in LoadElfSymbols()
|
D | elf_file.cpp | 141 std::unique_ptr<ProgramHeader> phdr = ProgramHeader::MakeUnique(phdrBuf, phdrSize); in ParsePrgHeaders() local 142 if (phdr == nullptr) { in ParsePrgHeaders() 148 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | program_header.cpp | 26 std::unique_ptr<ProgramHeader> phdr {new (std::nothrow) ProgramHeader()}; in MakeUnique() local 27 CHECK_NOTNULL(phdr, nullptr, "ProgramHeader() failed"); in MakeUnique() 28 if (!phdr->Init(phdrBuf, bufSize)) { in MakeUnique() 33 return phdr; in MakeUnique()
|
D | symbols_file.cpp | 331 for (auto &phdr : elfFile->phdrs_) { in LoadDebugInfo() local 332 if ((phdr->type_ == PT_LOAD) && (phdr->flags_ & PF_X)) { in LoadDebugInfo() 334 if (textExecVaddr_ != std::min(textExecVaddr_, phdr->vaddr_)) { in LoadDebugInfo() 335 textExecVaddr_ = std::min(textExecVaddr_, phdr->vaddr_); in LoadDebugInfo() 336 textExecVaddrFileOffset_ = phdr->offset_; in LoadDebugInfo() 741 for (auto &phdr : elfFile->phdrs_) { in LoadElfSymbols() local 742 if ((phdr->type_ == PT_LOAD) && (phdr->flags_ & PF_X)) { in LoadElfSymbols() 744 if (textExecVaddr_ != std::min(textExecVaddr_, phdr->vaddr_)) { in LoadElfSymbols() 745 textExecVaddr_ = std::min(textExecVaddr_, phdr->vaddr_); in LoadElfSymbols() 746 textExecVaddrFileOffset_ = phdr->offset_; in LoadElfSymbols()
|
D | elf_file.cpp | 115 std::unique_ptr<ProgramHeader> phdr = ProgramHeader::MakeUnique(phdrBuf, phdrSize); in ParsePrgHeaders() local 116 if (phdr == nullptr) { in ParsePrgHeaders() 122 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders()
|
/developtools/profiler/hiebpf/src/ |
D | elf_symbol_info.cpp | 32 for (auto &phdr : elfFile->phdrs_) { in GetSymbolTable() local 33 if ((phdr->type_ == PT_LOAD) && (phdr->flags_ & PF_X)) { in GetSymbolTable() 35 if (symbolTable.textVaddr_ != (std::min)(symbolTable.textVaddr_, phdr->vaddr_)) { in GetSymbolTable() 36 symbolTable.textVaddr_ = (std::min)(symbolTable.textVaddr_, phdr->vaddr_); in GetSymbolTable() 37 symbolTable.textOffset_ = phdr->offset_; in GetSymbolTable()
|
D | elf_file.cpp | 106 std::unique_ptr<ProgramHeader> phdr = ProgramHeader::MakeUnique(phdrBuf, phdrSize); in ParsePrgHeaders() local 107 if (phdr == nullptr) { in ParsePrgHeaders() 113 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders() 458 std::unique_ptr<ProgramHeader> phdr {new (std::nothrow) ProgramHeader()}; in MakeUnique() local 459 CHECK_NOTNULL(phdr, nullptr, "ProgramHeader() failed"); in MakeUnique() 460 … CHECK_TRUE(phdr->Init(phdrBuf, bufSize), nullptr, "ProgramHeader::Init(phdrBuf, bufSize) failed"); in MakeUnique() 461 return phdr; in MakeUnique()
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
D | elf_parser_test.cpp | 244 auto phdr = PhdrFromReadelf::MakeUnique(line1 + line2); in ParsePrgHeaders64() local 245 if (phdr == nullptr) { in ParsePrgHeaders64() 251 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders64() 265 auto phdr = PhdrFromReadelf::MakeUnique(line); in ParsePrgHeaders32() local 266 if (phdr == nullptr) { in ParsePrgHeaders32() 271 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders32() 863 std::unique_ptr<PhdrFromReadelf> phdr {new (std::nothrow) PhdrFromReadelf()}; in MakeUnique() local 864 if (phdr == nullptr) { in MakeUnique() 868 if (!phdr->Init(line)) { in MakeUnique() 874 return phdr; in MakeUnique()
|
/developtools/hiperf/test/unittest/common/native/ |
D | elf_parser_test.cpp | 245 auto phdr = PhdrFromReadelf::MakeUnique(line1 + line2); in ParsePrgHeaders64() local 246 if (phdr == nullptr) { in ParsePrgHeaders64() 252 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders64() 266 auto phdr = PhdrFromReadelf::MakeUnique(line); in ParsePrgHeaders32() local 267 if (phdr == nullptr) { in ParsePrgHeaders32() 272 phdrs_.push_back(std::move(phdr)); in ParsePrgHeaders32() 864 std::unique_ptr<PhdrFromReadelf> phdr {new (std::nothrow) PhdrFromReadelf()}; in MakeUnique() local 865 if (phdr == nullptr) { in MakeUnique() 869 if (!phdr->Init(line)) { in MakeUnique() 875 return phdr; in MakeUnique()
|