perf thread-stack: Add thread_stack__br_sample_late()
Add a thread stack function to create a branch stack for hardware events where the sample records get created some time after the event occurred. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lore.kernel.org/lkml/20200429150751.12570-7-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
6cd2cbfc68
commit
3749e0bbde
@@ -91,6 +91,9 @@ void thread_stack__sample_late(struct thread *thread, int cpu,
|
||||
u64 kernel_start);
|
||||
void thread_stack__br_sample(struct thread *thread, int cpu,
|
||||
struct branch_stack *dst, unsigned int sz);
|
||||
void thread_stack__br_sample_late(struct thread *thread, int cpu,
|
||||
struct branch_stack *dst, unsigned int sz,
|
||||
u64 sample_ip, u64 kernel_start);
|
||||
int thread_stack__flush(struct thread *thread);
|
||||
void thread_stack__free(struct thread *thread);
|
||||
size_t thread_stack__depth(struct thread *thread, int cpu);
|
||||
|
||||
Reference in New Issue
Block a user