Lines Matching refs:br_cntr

293 	if (br_cntr_nr && branch->br_cntr == NULL) {  in symbol__find_branch_hist()
294 branch->br_cntr = calloc(br_cntr_nr * size, sizeof(u64)); in symbol__find_branch_hist()
295 if (!branch->br_cntr) in symbol__find_branch_hist()
337 u64 br_cntr) in symbol__account_br_cntr() argument
342 u64 *branch_br_cntr = branch->br_cntr; in symbol__account_br_cntr()
345 if (!br_cntr || !branch_br_cntr) in symbol__account_br_cntr()
351 u64 cntr = (br_cntr >> i * width) & mask; in symbol__account_br_cntr()
363 u64 br_cntr) in symbol__account_cycles() argument
392 return symbol__account_br_cntr(branch, evsel, offset, br_cntr); in symbol__account_cycles()
399 u64 br_cntr) in addr_map_symbol__account_cycles() argument
425 err = symbol__account_cycles(ams->al_addr, saddr, ams->ms.sym, cycles, evsel, br_cntr); in addr_map_symbol__account_cycles()
466 free(branch->br_cntr); in annotated_branch__delete()
548 if (al && notes->branch->br_cntr) { in annotation__compute_ipc()
549 if (!al->br_cntr) { in annotation__compute_ipc()
550 al->br_cntr = calloc(br_cntr_nr, sizeof(u64)); in annotation__compute_ipc()
551 if (!al->br_cntr) { in annotation__compute_ipc()
559 memcpy(al->br_cntr, &notes->branch->br_cntr[offset * br_cntr_nr], in annotation__compute_ipc()
575 zfree(&al->br_cntr); in annotation__compute_ipc()
1857 u64 *br_cntr, int num_aggr, in annotation_br_cntr_entry() argument
1868 avg = ceil((double)(br_cntr[i] & ~ANNOTATION__BR_CNTR_SATURATED_FLAG) / in annotation_br_cntr_entry()
1884 if (!br_cntr[i]) { in annotation_br_cntr_entry()
1891 if (br_cntr[i] & ANNOTATION__BR_CNTR_SATURATED_FLAG) { in annotation_br_cntr_entry()
1907 if (!br_cntr[i]) { in annotation_br_cntr_entry()
1917 if (br_cntr[i] & ANNOTATION__BR_CNTR_SATURATED_FLAG) in annotation_br_cntr_entry()
2119 if (!annotation_br_cntr_entry(&buf, al->br_cntr_nr, al->br_cntr, in annotation_line__write()