Home
last modified time | relevance | path

Searched refs:bi (Results 1 – 9 of 9) sorted by relevance

/tools/perf/util/
Dblock-info.c46 struct block_info *block_info__get(struct block_info *bi) in block_info__get() argument
48 if (bi) in block_info__get()
49 refcount_inc(&bi->refcnt); in block_info__get()
50 return bi; in block_info__get()
53 void block_info__put(struct block_info *bi) in block_info__put() argument
55 if (bi && refcount_dec_and_test(&bi->refcnt)) in block_info__put()
56 free(bi); in block_info__put()
61 struct block_info *bi = zalloc(sizeof(*bi)); in block_info__new() local
63 if (bi) in block_info__new()
64 refcount_set(&bi->refcnt, 1); in block_info__new()
[all …]
Dblock-info.h54 struct block_info *block_info__get(struct block_info *bi);
55 void block_info__put(struct block_info *bi);
57 static inline void __block_info__zput(struct block_info **bi) in __block_info__zput() argument
59 block_info__put(*bi); in __block_info__zput()
60 *bi = NULL; in __block_info__zput()
63 #define block_info__zput(bi) __block_info__zput(&bi) argument
Dhist.c691 struct branch_info *bi, in __hists__add_entry() argument
726 .branch_info = bi, in __hists__add_entry()
746 struct branch_info *bi, in hists__add_entry() argument
751 return __hists__add_entry(hists, al, sym_parent, bi, mi, NULL, in hists__add_entry()
759 struct branch_info *bi, in hists__add_entry_ops() argument
764 return __hists__add_entry(hists, al, sym_parent, bi, mi, NULL, in hists__add_entry_ops()
878 struct branch_info *bi; in iter_prepare_branch_entry() local
881 bi = sample__resolve_bstack(sample, al); in iter_prepare_branch_entry()
882 if (!bi) in iter_prepare_branch_entry()
888 iter->priv = bi; in iter_prepare_branch_entry()
[all …]
Dhist.h141 struct branch_info *bi,
150 struct branch_info *bi,
157 struct block_info *bi);
Dmachine.c2169 struct branch_info *bi = calloc(bs->nr, sizeof(struct branch_info)); in sample__resolve_bstack() local
2171 if (!bi) in sample__resolve_bstack()
2175 ip__resolve_ams(al->thread, &bi[i].to, entries[i].to); in sample__resolve_bstack()
2176 ip__resolve_ams(al->thread, &bi[i].from, entries[i].from); in sample__resolve_bstack()
2177 bi[i].flags = entries[i].flags; in sample__resolve_bstack()
2179 return bi; in sample__resolve_bstack()
/tools/perf/
Dbuiltin-annotate.c133 struct branch_info *bi; in process_branch_stack() local
139 bi = sample__resolve_bstack(sample, al); in process_branch_stack()
140 if (!bi) in process_branch_stack()
148 process_basic_block(prev, &bi[i].from, &bi[i].flags); in process_branch_stack()
149 prev = &bi[i].to; in process_branch_stack()
152 free(bi); in process_branch_stack()
161 struct branch_info *bi; in hist_iter__branch_callback() local
166 bi = he->branch_info; in hist_iter__branch_callback()
167 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); in hist_iter__branch_callback()
172 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); in hist_iter__branch_callback()
Dbuiltin-report.c150 struct branch_info *bi; in hist_iter__report_callback() local
156 bi = he->branch_info; in hist_iter__report_callback()
157 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); in hist_iter__report_callback()
161 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); in hist_iter__report_callback()
189 struct branch_info *bi = he->branch_info; in hist_iter__branch_callback() local
194 branch_type_count(&rep->brtype_stat, &bi->flags, in hist_iter__branch_callback()
195 bi->from.addr, bi->to.addr); in hist_iter__branch_callback()
200 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); in hist_iter__branch_callback()
204 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); in hist_iter__branch_callback()
Dbuiltin-diff.c1355 struct block_info *bi; in cycles_printf() local
1370 bi = block_he->block_info; in cycles_printf()
1372 start_line = map__srcline(he->ms.map, bi->sym->start + bi->start, in cycles_printf()
1375 end_line = map__srcline(he->ms.map, bi->sym->start + bi->end, in cycles_printf()
1384 bi->start, bi->end, block_he->diff.cycles); in cycles_printf()
/tools/perf/ui/browsers/
Dhists.c2950 struct branch_info *bi = NULL; in perf_evsel__hists_browse() local
3097 bi = browser->he_selection->branch_info; in perf_evsel__hists_browse()
3098 if (!bi || !bi->to.ms.map) in perf_evsel__hists_browse()
3101 actions->ms.sym = symbol__new_unresolved(bi->to.al_addr, bi->to.ms.map); in perf_evsel__hists_browse()
3102 actions->ms.map = bi->to.ms.map; in perf_evsel__hists_browse()
3287 bi = browser->he_selection->branch_info; in perf_evsel__hists_browse()
3289 if (bi == NULL) in perf_evsel__hists_browse()
3295 &bi->from.ms, in perf_evsel__hists_browse()
3296 bi->from.al_addr); in perf_evsel__hists_browse()
3297 if (bi->to.ms.sym != bi->from.ms.sym) in perf_evsel__hists_browse()
[all …]