Lines Matching refs:total
114 u64 total = 0; in branch_type_stat_display() local
118 total += st->counts[i]; in branch_type_stat_display()
120 if (total == 0) in branch_type_stat_display()
130 100.0 * (double)st->cond_fwd / (double)total); in branch_type_stat_display()
136 100.0 * (double)st->cond_bwd / (double)total); in branch_type_stat_display()
142 100.0 * (double)st->cross_4k / (double)total); in branch_type_stat_display()
148 100.0 * (double)st->cross_2m / (double)total); in branch_type_stat_display()
156 (double)st->counts[i] / (double)total); in branch_type_stat_display()
164 (double)st->new_counts[i] / (double)total); in branch_type_stat_display()
177 u64 total = 0; in branch_type_str() local
180 total += st->counts[i]; in branch_type_str()
183 total += st->new_counts[i]; in branch_type_str()
185 if (total == 0) in branch_type_str()