• Home
  • Raw
  • Download

Lines Matching refs:binary_proto

346       const auto& binary_proto = branch_list_proto.binaries(i);  in ProcessBranchListFile()  local
347 BuildId build_id(binary_proto.build_id()); in ProcessBranchListFile()
348 std::optional<DsoType> dso_type = ToDsoType(binary_proto.type()); in ProcessBranchListFile()
353 Dso::CreateDsoWithBuildId(dso_type.value(), binary_proto.path(), build_id); in ProcessBranchListFile()
360 auto branch_map = BuildBranchMap(binary_proto); in ProcessBranchListFile()
363 if (!ModifyBranchMapForKernel(binary_proto, dso_p, branch_map)) { in ProcessBranchListFile()
376 BranchMap BuildBranchMap(const proto::ETMBranchList_Binary& binary_proto) { in BuildBranchMap() argument
378 for (size_t i = 0; i < binary_proto.addrs_size(); i++) { in BuildBranchMap()
379 const auto& addr_proto = binary_proto.addrs(i); in BuildBranchMap()
391 bool ModifyBranchMapForKernel(const proto::ETMBranchList_Binary& binary_proto, Dso* dso, in ModifyBranchMapForKernel() argument
393 if (!binary_proto.has_kernel_info()) { in ModifyBranchMapForKernel()
397 uint64_t kernel_map_start_addr = binary_proto.kernel_info().kernel_start_addr(); in ModifyBranchMapForKernel()
507 auto binary_proto = branch_list_proto.add_binaries(); in GenerateBranchList() local
509 binary_proto->set_path(dso->Path()); in GenerateBranchList()
512 binary_proto->set_build_id(build_id.ToString().substr(2)); in GenerateBranchList()
518 binary_proto->set_type(opt_binary_type.value()); in GenerateBranchList()
521 auto addr_proto = binary_proto->add_addrs(); in GenerateBranchList()
544 binary_proto->mutable_kernel_info()->set_kernel_start_addr(kernel_map_start_addr_); in GenerateBranchList()
548 binary_proto->mutable_kernel_info()->set_kernel_start_addr(0); in GenerateBranchList()