/linux-6.3-rc2/tools/perf/tests/ |
A D | sample-parsing.c | 41 #define FLAG(s) s->branch_stack->entries[i].flags 116 COMP(branch_stack->nr); in samples_same() 117 COMP(branch_stack->hw_idx); in samples_same() 118 for (i = 0; i < s1->branch_stack->nr; i++) { in samples_same() 124 MCOMP(branch_stack->entries[i]); in samples_same() 216 struct branch_stack branch_stack; in do_test() member 218 } branch_stack = { in do_test() local 243 .branch_stack = &branch_stack.branch_stack, in do_test()
|
/linux-6.3-rc2/tools/perf/util/ |
A D | branch.h | 47 struct branch_stack { struct 65 u64 *entry = (u64 *)sample->branch_stack; in perf_sample__branch_entries()
|
A D | sample.h | 103 struct branch_stack *branch_stack; member
|
A D | thread-stack.h | 92 struct branch_stack *dst, unsigned int sz); 94 struct branch_stack *dst, unsigned int sz,
|
A D | record.h | 59 u64 branch_stack; member
|
A D | thread-stack.c | 102 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()
|
A D | cs-etm.c | 76 struct branch_stack *last_branch; 77 struct branch_stack *last_branch_rb; 297 size_t sz = sizeof(struct branch_stack); in cs_etm__init_traceid_queue() 914 struct branch_stack *bs_src = tidq->last_branch_rb; in cs_etm__copy_last_branch_rb() 915 struct branch_stack *bs_dst = tidq->last_branch; in cs_etm__copy_last_branch_rb() 1018 struct branch_stack *bs = tidq->last_branch_rb; in cs_etm__update_last_branch_rb() 1220 sample.branch_stack = tidq->last_branch; in cs_etm__synth_instruction_sample() 1292 sample.branch_stack = (struct branch_stack *)&dummy_bs; in cs_etm__synth_branch_sample()
|
A D | evsel.c | 885 if (!opts->branch_stack) { in __evsel__config_callchain() 1275 if (opts->branch_stack && !evsel->no_aux_samples) { in evsel__config() 1277 attr->branch_sample_type = opts->branch_stack; in evsel__config() 2557 data->branch_stack = (struct branch_stack *)array++; in evsel__parse_sample() 2559 if (data->branch_stack->nr > max_branch_nr) in evsel__parse_sample() 2562 sz = data->branch_stack->nr * sizeof(struct branch_entry); in evsel__parse_sample() 2565 e = &data->branch_stack->entries[0]; in evsel__parse_sample() 2572 e = (struct branch_entry *)&data->branch_stack->hw_idx; in evsel__parse_sample() 2586 for (i = 0; i < data->branch_stack->nr; i++, e++) in evsel__parse_sample()
|
A D | machine.c | 2335 const struct branch_stack *bs = sample->branch_stack; in sample__resolve_bstack() 2481 struct branch_stack *lbr_stack = sample->branch_stack; in lbr_callchain_add_lbr_ip() 2619 struct branch_stack *cur_stack = cur->branch_stack; in has_stitched_lbr() 2621 struct branch_stack *prev_stack = prev->branch_stack; in has_stitched_lbr() 2839 struct branch_stack *branch = sample->branch_stack; in thread__resolve_callchain_sample()
|
A D | hist.h | 18 struct branch_stack; 555 void hist__account_cycles(struct branch_stack *bs, struct addr_location *al,
|
A D | dlfilter.c | 501 if (sample->branch_stack) { in dlfilter__do_filter_event() 502 d_sample.brstack_nr = sample->branch_stack->nr; in dlfilter__do_filter_event()
|
A D | intel-pt.c | 158 struct branch_stack *br_stack; 188 struct branch_stack *last_branch; 1226 static struct branch_stack *intel_pt_alloc_br_stack(unsigned int entry_cnt) in intel_pt_alloc_br_stack() 1228 size_t sz = sizeof(struct branch_stack); in intel_pt_alloc_br_stack() 1261 sample->branch_stack = pt->br_stack; in intel_pt_add_br_stack() 1772 sample.branch_stack = (struct branch_stack *)&dummy_bs; in intel_pt_synth_branch_sample() 1804 sample->branch_stack = ptq->last_branch; in intel_pt_prep_sample() 2184 static void intel_pt_add_lbrs(struct branch_stack *br_stack, in intel_pt_add_lbrs() 2291 sample.branch_stack = ptq->last_branch; in intel_pt_do_synth_pebs_sample() 3467 if (pt->synth_opts.add_last_branch && !sample->branch_stack) in intel_pt_process_event()
|
A D | event.h | 51 struct branch_stack;
|
A D | machine.h | 12 struct branch_stack;
|
A D | session.c | 1098 struct branch_stack *lbr_stack = sample->branch_stack; in callchain__lbr_callstack_printf() 1165 printf("%s: nr:%" PRIu64 "\n", "... branch stack", sample->branch_stack->nr); in branch_stack__printf() 1176 printf("%s: nr:%" PRIu64 "\n", "... branch callstack", sample->branch_stack->nr+1); in branch_stack__printf() 1179 for (i = 0; i < sample->branch_stack->nr; i++) { in branch_stack__printf()
|
A D | synthetic-events.c | 1485 sz = sample->branch_stack->nr * sizeof(struct branch_entry); in perf_event__sample_event_size() 1679 sz = sample->branch_stack->nr * sizeof(struct branch_entry); in perf_event__synthesize_sample() 1682 memcpy(array, sample->branch_stack, sz); in perf_event__synthesize_sample()
|
A D | hist.c | 897 iter->total = sample->branch_stack->nr; in iter_prepare_branch_entry() 2639 void hist__account_cycles(struct branch_stack *bs, struct addr_location *al, in hist__account_cycles()
|
A D | header.c | 3394 FEAT_OPN(BRANCH_STACK, branch_stack, false),
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-annotate.c | 136 static void process_branch_stack(struct branch_stack *bs, struct addr_location *al, in process_branch_stack() 210 hist__account_cycles(sample->branch_stack, al, sample, false, NULL); in process_branch_callback() 250 process_branch_stack(sample->branch_stack, al, sample); in evsel__add_sample()
|
A D | builtin-top.c | 736 hist__account_cycles(iter->sample->branch_stack, al, iter->sample, in hist_iter__top_callback() 737 !(top->record_opts.branch_stack & PERF_SAMPLE_BRANCH_ANY), in hist_iter__top_callback() 1546 OPT_CALLBACK_NOOPT('b', "branch-any", &opts->branch_stack, in cmd_top() 1549 OPT_CALLBACK('j', "branch-filter", &opts->branch_stack, in cmd_top() 1660 if (opts->branch_stack && callchain_param.enabled) in cmd_top()
|
A D | builtin-script.c | 911 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstack() 955 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstacksym() 997 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstackoff() 1227 struct branch_stack *br = sample->branch_stack; in perf_sample__fprintf_brstackinsn()
|
A D | builtin-report.c | 303 if (!sample->branch_stack) in process_sample_event() 320 hist__account_cycles(sample->branch_stack, &al, sample, in process_sample_event()
|
A D | builtin-record.c | 1705 if (!rec->opts.branch_stack) in record__init_features() 3424 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack, 3428 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack,
|
A D | builtin-diff.c | 432 hist__account_cycles(sample->branch_stack, &al, sample, false, in diff__process_sample_event()
|
/linux-6.3-rc2/tools/perf/util/scripting-engines/ |
A D | trace-event-python.c | 500 struct branch_stack *br = sample->branch_stack; in python_process_brstack() 586 struct branch_stack *br = sample->branch_stack; in python_process_brstacksym()
|