aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/thread-stack.h
diff options
context:
space:
mode:
authorGravatar Adrian Hunter <adrian.hunter@intel.com> 2020-04-01 13:16:06 +0300
committerGravatar Arnaldo Carvalho de Melo <acme@redhat.com> 2020-04-16 12:19:15 -0300
commit4fef41bfb1d8d2ada4a18eb3ab80c2682bcbae12 (patch)
treef3f1c211ac64deb4bcbf98d3b6332dd523fd0d2a /tools/perf/util/thread-stack.h
parentperf auxtrace: Add an option to synthesize callchains for regular events (diff)
downloadlinux-4fef41bfb1d8d2ada4a18eb3ab80c2682bcbae12.tar.gz
linux-4fef41bfb1d8d2ada4a18eb3ab80c2682bcbae12.tar.bz2
linux-4fef41bfb1d8d2ada4a18eb3ab80c2682bcbae12.zip
perf thread-stack: Add thread_stack__sample_late()
Add a thread stack function to create a call chain 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/20200401101613.6201-10-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/thread-stack.h')
-rw-r--r--tools/perf/util/thread-stack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/thread-stack.h b/tools/perf/util/thread-stack.h
index e1ec5a58f1b2..8962ddc4e1ab 100644
--- a/tools/perf/util/thread-stack.h
+++ b/tools/perf/util/thread-stack.h
@@ -85,6 +85,9 @@ int thread_stack__event(struct thread *thread, int cpu, u32 flags, u64 from_ip,
void thread_stack__set_trace_nr(struct thread *thread, int cpu, u64 trace_nr);
void thread_stack__sample(struct thread *thread, int cpu, struct ip_callchain *chain,
size_t sz, u64 ip, u64 kernel_start);
+void thread_stack__sample_late(struct thread *thread, int cpu,
+ struct ip_callchain *chain, size_t sz, u64 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);