Lines Matching refs:binary

185       AutoFDOBinaryInfo& binary = p.second;  in ProcessAutoFDOBinaryInfo()  local
186 binary.first_load_segment_addr = GetFirstLoadSegmentVaddr(dso); in ProcessAutoFDOBinaryInfo()
187 autofdo_callback_(BinaryKey(dso, 0), binary); in ProcessAutoFDOBinaryInfo()
317 for (auto& [key, binary] : binary_map) { in ProcessETMBranchListFeature()
321 etm_binary_callback_(key, binary); in ProcessETMBranchListFeature()
346 ETMBinary& binary = p.second; in ProcessETMBinary() local
347 binary.dso_type = dso->type(); in ProcessETMBinary()
349 if (binary.dso_type == DSO_KERNEL) { in ProcessETMBinary()
361 etm_binary_callback_(key, binary); in ProcessETMBinary()
530 for (auto& [key, binary] : etm_data) { in ProcessETMData()
534 etm_binary_callback_(key, binary); in ProcessETMData()
596 std::unique_ptr<AutoFDOBinaryInfo> Convert(const BinaryKey& key, ETMBinary& binary) { in Convert() argument
598 std::unique_ptr<Dso> dso = Dso::CreateDsoWithBuildId(binary.dso_type, key.path, build_id); in Convert()
606 ModifyBranchMapForKernel(dso.get(), key.kernel_start_addr, binary); in Convert()
614 auto result = ConvertETMBranchMapToInstrRanges(dso.get(), binary.GetOrderedBranchMap(), in Convert()
634 void ModifyBranchMapForKernel(Dso* dso, uint64_t kernel_start_addr, ETMBinary& binary) { in ModifyBranchMapForKernel() argument
642 for (auto& p : binary.branch_map) { in ModifyBranchMapForKernel()
646 binary.branch_map = std::move(new_branch_map); in ModifyBranchMapForKernel()
653 void AddAutoFDOBinary(const BinaryKey& key, AutoFDOBinaryInfo& binary) { in AddAutoFDOBinary() argument
656 binary_map_[key] = std::move(binary); in AddAutoFDOBinary()
658 it->second.Merge(binary); in AddAutoFDOBinary()
683 const AutoFDOBinaryInfo& binary = binary_map_[key]; in Write() local
686 uint64_t base_addr = binary.first_load_segment_addr; in Write()
690 for (std::pair<AddrPair, uint64_t> p : binary.range_count_map) { in Write()
706 for (std::pair<uint64_t, uint64_t> p : binary.address_count_map) { in Write()
720 for (std::pair<AddrPair, uint64_t> p : binary.branch_count_map) { in Write()
747 void AddETMBinary(const BinaryKey& key, ETMBinary& binary) { in AddETMBinary()
749 it->second.Merge(binary); in AddETMBinary()
751 etm_data_[key] = std::move(binary); in AddETMBinary()
997 auto afdo_callback = [&](const BinaryKey& key, AutoFDOBinaryInfo& binary) { in ConvertPerfDataToAutoFDO() argument
998 autofdo_writer.AddAutoFDOBinary(key, binary); in ConvertPerfDataToAutoFDO()
1009 auto etm_callback = [&](const BinaryKey& key, ETMBinary& binary) { in ConvertPerfDataToBranchList() argument
1010 merger.AddETMBinary(key, binary); in ConvertPerfDataToBranchList()
1027 auto etm_callback = [&](const BinaryKey& key, ETMBinary& binary) { in ConvertBranchListToAutoFDO() argument
1028 merger.AddETMBinary(key, binary); in ConvertBranchListToAutoFDO()
1045 ETMBinary& binary = p.second; in ConvertBranchListToAutoFDO() local
1046 std::unique_ptr<AutoFDOBinaryInfo> autofdo_binary = converter.Convert(key, binary); in ConvertBranchListToAutoFDO()
1071 auto etm_callback = [&](const BinaryKey& key, ETMBinary& binary) { in ConvertBranchListToBranchList() argument
1072 merger.AddETMBinary(key, binary); in ConvertBranchListToBranchList()