Lines Matching refs:branch
37 std::string BranchToProtoString(const std::vector<bool>& branch) { in BranchToProtoString() argument
38 size_t bytes = (branch.size() + 7) / 8; in BranchToProtoString()
40 for (size_t i = 0; i < branch.size(); i++) { in BranchToProtoString()
41 if (branch[i]) { in BranchToProtoString()
49 std::vector<bool> branch(bit_size, false); in ProtoStringToBranch() local
52 branch[i] = true; in ProtoStringToBranch()
55 return branch; in ProtoStringToBranch()
255 [this](const ETMBranchList& branch) { ProcessBranchList(branch); }); in ProcessRecord() argument
310 ++branch_list_binary_map_[branch_list.dso][branch_list.addr][branch_list.branch]; in ProcessBranchList()
383 std::vector<bool> branch = in BuildBranchMap() local
384 ProtoStringToBranch(branch_proto.branch(), branch_proto.branch_size()); in BuildBranchMap()
385 b_map[branch] = branch_proto.count(); in BuildBranchMap()
468 const AddrPair& branch = pair2.first; in GenerateInstrRange() local
471 fprintf(output_fp_.get(), "%" PRIx64 "->%" PRIx64 ":%" PRIu64 "\n", to_offset(branch.first), in GenerateInstrRange()
472 to_offset(branch.second), count); in GenerateInstrRange()
525 const std::vector<bool>& branch = branch_p.first; in GenerateBranchList() local
528 branch_proto->set_branch(BranchToProtoString(branch)); in GenerateBranchList()
529 branch_proto->set_branch_size(branch.size()); in GenerateBranchList()