Home
last modified time | relevance | path

Searched refs:br_stack (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/kernel/trace/
Dbpf_trace.c1521 struct perf_branch_stack *br_stack = ctx->data->br_stack; in BPF_CALL_4() local
1527 if (unlikely(!br_stack)) in BPF_CALL_4()
1531 return br_stack->nr * br_entry_size; in BPF_CALL_4()
1536 to_copy = min_t(u32, br_stack->nr * br_entry_size, size); in BPF_CALL_4()
1537 memcpy(buf, br_stack->entries, to_copy); in BPF_CALL_4()
/kernel/linux/linux-5.10/tools/perf/util/
Dintel-pt.c134 struct branch_stack *br_stack; member
976 pt->br_stack = intel_pt_alloc_br_stack(pt->br_stack_sz); in intel_pt_br_stack_init()
977 if (!pt->br_stack) in intel_pt_br_stack_init()
990 thread_stack__br_sample_late(thread, sample->cpu, pt->br_stack, in intel_pt_add_br_stack()
994 sample->branch_stack = pt->br_stack; in intel_pt_add_br_stack()
1756 static void intel_pt_add_lbrs(struct branch_stack *br_stack, in intel_pt_add_lbrs() argument
1762 br_stack->nr = 0; in intel_pt_add_lbrs()
1764 to = &br_stack->entries[0].from; in intel_pt_add_lbrs()
1775 br_stack->nr += 1; in intel_pt_add_lbrs()
/kernel/linux/linux-5.10/include/linux/
Dperf_event.h997 struct perf_branch_stack *br_stack; member
1044 data->br_stack = NULL; in perf_sample_data_init()
/kernel/linux/linux-5.10/arch/x86/events/intel/
Dds.c1484 data->br_stack = &cpuc->lbr_stack; in setup_pebs_fixed_sample_data()
1610 data->br_stack = &cpuc->lbr_stack; in setup_pebs_adaptive_sample_data()
Dcore.c2694 data.br_stack = &cpuc->lbr_stack; in handle_pmi_common()
/kernel/linux/linux-5.10/kernel/events/
Dcore.c7038 if (data->br_stack) { in perf_output_sample()
7041 size = data->br_stack->nr in perf_output_sample()
7044 perf_output_put(handle, data->br_stack->nr); in perf_output_sample()
7046 perf_output_put(handle, data->br_stack->hw_idx); in perf_output_sample()
7047 perf_output_copy(handle, data->br_stack->entries, size); in perf_output_sample()
7245 if (data->br_stack) { in perf_prepare_sample()
7249 size += data->br_stack->nr in perf_prepare_sample()
/kernel/linux/linux-5.10/arch/powerpc/perf/
Dcore-book3s.c2204 data.br_stack = &cpuhw->bhrb_stack; in record_and_restart()