Home
last modified time | relevance | path

Searched refs:branch_stack (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.10/tools/perf/tests/
Dsample-parsing.c101 COMP(branch_stack->nr); in samples_same()
102 COMP(branch_stack->hw_idx); in samples_same()
103 for (i = 0; i < s1->branch_stack->nr; i++) in samples_same()
104 MCOMP(branch_stack->entries[i]); in samples_same()
189 struct branch_stack branch_stack; in do_test() member
191 } branch_stack = { in do_test() local
216 .branch_stack = &branch_stack.branch_stack, in do_test()
/Linux-v5.10/tools/perf/util/
Dbranch.h46 struct branch_stack { struct
64 u64 *entry = (u64 *)sample->branch_stack; in perf_sample__branch_entries()
Dthread-stack.h93 struct branch_stack *dst, unsigned int sz);
95 struct branch_stack *dst, unsigned int sz,
Devent.h85 struct branch_stack;
147 struct branch_stack *branch_stack; member
Drecord.h56 u64 branch_stack; member
Dthread-stack.c102 struct branch_stack *br_stack_rb;
149 size_t sz = sizeof(struct branch_stack); in thread_stack__init()
385 struct branch_stack *bs = ts->br_stack_rb; in thread_stack__update_br_stack()
617 struct branch_stack *dst, unsigned int sz) in thread_stack__br_sample()
621 struct branch_stack *src; in thread_stack__br_sample()
678 struct branch_stack *dst, unsigned int sz, in thread_stack__br_sample_late()
683 struct branch_stack *src; in thread_stack__br_sample_late()
Dcs-etm.c76 struct branch_stack *last_branch;
77 struct branch_stack *last_branch_rb;
257 size_t sz = sizeof(struct branch_stack); in cs_etm__init_traceid_queue()
889 struct branch_stack *bs_src = tidq->last_branch_rb; in cs_etm__copy_last_branch_rb()
890 struct branch_stack *bs_dst = tidq->last_branch; in cs_etm__copy_last_branch_rb()
993 struct branch_stack *bs = tidq->last_branch_rb; in cs_etm__update_last_branch_rb()
1168 sample.branch_stack = tidq->last_branch; in cs_etm__synth_instruction_sample()
1237 sample.branch_stack = (struct branch_stack *)&dummy_bs; in cs_etm__synth_branch_sample()
Dmachine.c2166 const struct branch_stack *bs = sample->branch_stack; in sample__resolve_bstack()
2312 struct branch_stack *lbr_stack = sample->branch_stack; in lbr_callchain_add_lbr_ip()
2450 struct branch_stack *cur_stack = cur->branch_stack; in has_stitched_lbr()
2452 struct branch_stack *prev_stack = prev->branch_stack; in has_stitched_lbr()
2661 struct branch_stack *branch = sample->branch_stack; in thread__resolve_callchain_sample()
Dintel-pt.c134 struct branch_stack *br_stack;
153 struct branch_stack *last_branch;
945 static struct branch_stack *intel_pt_alloc_br_stack(unsigned int entry_cnt) in intel_pt_alloc_br_stack()
947 size_t sz = sizeof(struct branch_stack); in intel_pt_alloc_br_stack()
980 sample->branch_stack = pt->br_stack; in intel_pt_add_br_stack()
1381 sample.branch_stack = (struct branch_stack *)&dummy_bs; in intel_pt_synth_branch_sample()
1412 sample->branch_stack = ptq->last_branch; in intel_pt_prep_sample()
1738 static void intel_pt_add_lbrs(struct branch_stack *br_stack, in intel_pt_add_lbrs()
1850 sample.branch_stack = ptq->last_branch; in intel_pt_synth_pebs_sample()
2744 if (pt->synth_opts.add_last_branch && !sample->branch_stack) in intel_pt_process_event()
Dhist.h18 struct branch_stack;
546 void hist__account_cycles(struct branch_stack *bs, struct addr_location *al,
Devsel.c802 if (!opts->branch_stack) { in __evsel__config_callchain()
1165 if (opts->branch_stack && !evsel->no_aux_samples) { in evsel__config()
1167 attr->branch_sample_type = opts->branch_stack; in evsel__config()
2270 data->branch_stack = (struct branch_stack *)array++; in evsel__parse_sample()
2272 if (data->branch_stack->nr > max_branch_nr) in evsel__parse_sample()
2275 sz = data->branch_stack->nr * sizeof(struct branch_entry); in evsel__parse_sample()
Dmachine.h12 struct branch_stack;
Dsession.c1045 struct branch_stack *lbr_stack = sample->branch_stack; in callchain__lbr_callstack_printf()
1113 sample->branch_stack->nr); in branch_stack__printf()
1115 for (i = 0; i < sample->branch_stack->nr; i++) { in branch_stack__printf()
Dsynthetic-events.c1362 sz = sample->branch_stack->nr * sizeof(struct branch_entry); in perf_event__sample_event_size()
1527 sz = sample->branch_stack->nr * sizeof(struct branch_entry); in perf_event__synthesize_sample()
1530 memcpy(array, sample->branch_stack, sz); in perf_event__synthesize_sample()
Dhist.c886 iter->total = sample->branch_stack->nr; in iter_prepare_branch_entry()
2618 void hist__account_cycles(struct branch_stack *bs, struct addr_location *al, in hist__account_cycles()
Dheader.c3113 FEAT_OPN(BRANCH_STACK, branch_stack, false),
/Linux-v5.10/tools/perf/
Dbuiltin-annotate.c129 static void process_branch_stack(struct branch_stack *bs, struct addr_location *al, in process_branch_stack()
204 hist__account_cycles(sample->branch_stack, al, sample, false, NULL); in process_branch_callback()
245 process_branch_stack(sample->branch_stack, al, sample); in evsel__add_sample()
Dbuiltin-top.c737 hist__account_cycles(iter->sample->branch_stack, al, iter->sample, in hist_iter__top_callback()
738 !(top->record_opts.branch_stack & PERF_SAMPLE_BRANCH_ANY), in hist_iter__top_callback()
1554 OPT_CALLBACK_NOOPT('b', "branch-any", &opts->branch_stack, in cmd_top()
1557 OPT_CALLBACK('j', "branch-filter", &opts->branch_stack, in cmd_top()
1657 if (opts->branch_stack && callchain_param.enabled) in cmd_top()
Dbuiltin-script.c821 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstack()
869 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstacksym()
915 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstackoff()
1142 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstackinsn()
Dbuiltin-report.c284 if (!sample->branch_stack) in process_sample_event()
301 hist__account_cycles(sample->branch_stack, &al, sample, in process_sample_event()
Dbuiltin-record.c1199 if (!rec->opts.branch_stack) in record__init_features()
2502 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack,
2506 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
Dbuiltin-diff.c432 hist__account_cycles(sample->branch_stack, &al, sample, false, in diff__process_sample_event()
/Linux-v5.10/tools/perf/util/scripting-engines/
Dtrace-event-python.c466 struct branch_stack *br = sample->branch_stack; in python_process_brstack()
564 struct branch_stack *br = sample->branch_stack; in python_process_brstacksym()