diff options
author | 2020-04-29 18:07:48 +0300 | |
---|---|---|
committer | 2020-05-05 16:35:29 -0300 | |
commit | 3749e0bbdef24efbf1698bf0dbd9575fddb9ed22 (patch) | |
tree | dd1d179d4b110d997dfb1ed7761d5fb9bf795267 /tools/perf/util/thread-stack.h | |
parent | perf evsel: Add support for synthesized branch stack sample type (diff) | |
download | linux-3749e0bbdef24efbf1698bf0dbd9575fddb9ed22.tar.gz linux-3749e0bbdef24efbf1698bf0dbd9575fddb9ed22.tar.bz2 linux-3749e0bbdef24efbf1698bf0dbd9575fddb9ed22.zip |
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>
Diffstat (limited to 'tools/perf/util/thread-stack.h')
-rw-r--r-- | tools/perf/util/thread-stack.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/thread-stack.h b/tools/perf/util/thread-stack.h index c279a0cbbdd0..3bc47a42af8e 100644 --- a/tools/perf/util/thread-stack.h +++ b/tools/perf/util/thread-stack.h @@ -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); |