Home
last modified time | relevance | path

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

/linux/tools/perf/util/
H A Dintel-pt.c159 struct branch_stack *br_stack; member
1268 pt->br_stack = intel_pt_alloc_br_stack(pt->br_stack_sz); in intel_pt_br_stack_init()
1269 if (!pt->br_stack) in intel_pt_br_stack_init()
1282 thread_stack__br_sample_late(thread, sample->cpu, pt->br_stack, in intel_pt_add_br_stack()
1286 sample->branch_stack = pt->br_stack; in intel_pt_add_br_stack()
2252 static void intel_pt_add_lbrs(struct branch_stack *br_stack, in intel_pt_add_lbrs() argument
2258 br_stack->nr = 0; in intel_pt_add_lbrs()
2260 to = &br_stack->entries[0].from; in intel_pt_add_lbrs()
2271 br_stack->nr += 1; in intel_pt_add_lbrs()
3838 zfree(&pt->br_stack); in intel_pt_free()
/linux/kernel/trace/
H A Dbpf_trace.c1508 struct perf_branch_stack *br_stack = ctx->data->br_stack; in BPF_CALL_4() local
1517 if (unlikely(!br_stack)) in BPF_CALL_4()
1521 return br_stack->nr * br_entry_size; in BPF_CALL_4()
1526 to_copy = min_t(u32, br_stack->nr * br_entry_size, size); in BPF_CALL_4()
1527 memcpy(buf, br_stack->entries, to_copy); in BPF_CALL_4()
/linux/include/linux/
H A Dperf_event.h1333 struct perf_branch_stack *br_stack; member
1453 data->br_stack = brs; in perf_sample_save_brstack()
/linux/kernel/events/
H A Dcore.c8266 if (data->br_stack) { in perf_output_sample()
8269 size = data->br_stack->nr in perf_output_sample()
8272 perf_output_put(handle, data->br_stack->nr); in perf_output_sample()
8274 perf_output_put(handle, data->br_stack->hw_idx); in perf_output_sample()
8275 perf_output_copy(handle, data->br_stack->entries, size); in perf_output_sample()
8281 size = data->br_stack->nr * sizeof(u64); in perf_output_sample()
8584 data->br_stack = NULL; in perf_prepare_sample()