Searched refs:br_stack (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/tools/perf/util/ |
| H A D | intel-pt.c | 158 struct branch_stack *br_stack; member 1266 pt->br_stack = intel_pt_alloc_br_stack(pt->br_stack_sz); in intel_pt_br_stack_init() 1267 if (!pt->br_stack) in intel_pt_br_stack_init() 1280 thread_stack__br_sample_late(thread, sample->cpu, pt->br_stack, in intel_pt_add_br_stack() 1284 sample->branch_stack = pt->br_stack; in intel_pt_add_br_stack() 2250 static void intel_pt_add_lbrs(struct branch_stack *br_stack, in intel_pt_add_lbrs() argument 2256 br_stack->nr = 0; in intel_pt_add_lbrs() 2258 to = &br_stack->entries[0].from; in intel_pt_add_lbrs() 2269 br_stack->nr += 1; in intel_pt_add_lbrs() 3640 zfree(&pt->br_stack); in intel_pt_free()
|
| /linux-6.15/kernel/trace/ |
| H A D | bpf_trace.c | 1788 struct perf_branch_stack *br_stack = ctx->data->br_stack; in BPF_CALL_4() local 1797 if (unlikely(!br_stack)) in BPF_CALL_4() 1801 return br_stack->nr * br_entry_size; in BPF_CALL_4() 1806 to_copy = min_t(u32, br_stack->nr * br_entry_size, size); in BPF_CALL_4() 1807 memcpy(buf, br_stack->entries, to_copy); in BPF_CALL_4()
|
| /linux-6.15/include/linux/ |
| H A D | perf_event.h | 1266 struct perf_branch_stack *br_stack; member 1386 data->br_stack = brs; in perf_sample_save_brstack()
|
| /linux-6.15/kernel/events/ |
| H A D | core.c | 7826 if (data->br_stack) { in perf_output_sample() 7829 size = data->br_stack->nr in perf_output_sample() 7832 perf_output_put(handle, data->br_stack->nr); in perf_output_sample() 7834 perf_output_put(handle, data->br_stack->hw_idx); in perf_output_sample() 7835 perf_output_copy(handle, data->br_stack->entries, size); in perf_output_sample() 7841 size = data->br_stack->nr * sizeof(u64); in perf_output_sample() 8130 data->br_stack = NULL; in perf_prepare_sample()
|