Lines Matching refs:br_cntr
290 if (br_cntr_nr && branch->br_cntr == NULL) { in symbol__find_branch_hist()
291 branch->br_cntr = calloc(br_cntr_nr * size, sizeof(u64)); in symbol__find_branch_hist()
292 if (!branch->br_cntr) in symbol__find_branch_hist()
334 u64 br_cntr) in symbol__account_br_cntr() argument
339 u64 *branch_br_cntr = branch->br_cntr; in symbol__account_br_cntr()
342 if (!br_cntr || !branch_br_cntr) in symbol__account_br_cntr()
348 u64 cntr = (br_cntr >> i * width) & mask; in symbol__account_br_cntr()
360 u64 br_cntr) in symbol__account_cycles() argument
389 return symbol__account_br_cntr(branch, evsel, offset, br_cntr); in symbol__account_cycles()
396 u64 br_cntr) in addr_map_symbol__account_cycles() argument
422 err = symbol__account_cycles(ams->al_addr, saddr, ams->ms.sym, cycles, evsel, br_cntr); in addr_map_symbol__account_cycles()
463 free(branch->br_cntr); in annotated_branch__delete()
545 if (al && notes->branch->br_cntr) { in annotation__compute_ipc()
546 if (!al->br_cntr) { in annotation__compute_ipc()
547 al->br_cntr = calloc(br_cntr_nr, sizeof(u64)); in annotation__compute_ipc()
548 if (!al->br_cntr) { in annotation__compute_ipc()
556 memcpy(al->br_cntr, ¬es->branch->br_cntr[offset * br_cntr_nr], in annotation__compute_ipc()
572 zfree(&al->br_cntr); in annotation__compute_ipc()
1840 u64 *br_cntr, int num_aggr, in annotation_br_cntr_entry() argument
1851 avg = ceil((double)(br_cntr[i] & ~ANNOTATION__BR_CNTR_SATURATED_FLAG) / in annotation_br_cntr_entry()
1867 if (!br_cntr[i]) { in annotation_br_cntr_entry()
1874 if (br_cntr[i] & ANNOTATION__BR_CNTR_SATURATED_FLAG) { in annotation_br_cntr_entry()
1890 if (!br_cntr[i]) { in annotation_br_cntr_entry()
1900 if (br_cntr[i] & ANNOTATION__BR_CNTR_SATURATED_FLAG) in annotation_br_cntr_entry()
2042 if (!annotation_br_cntr_entry(&buf, al->br_cntr_nr, al->br_cntr, in __annotation_line__write()