perf thread-stack: Add thread_stack__br_sample_late()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Apr 2020 15:07:48 +0000 (18:07 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 May 2020 19:35:29 +0000 (16:35 -0300)
commit3749e0bbdef24efbf1698bf0dbd9575fddb9ed22
treedd1d179d4b110d997dfb1ed7761d5fb9bf795267
parent6cd2cbfc6865589c64ac37ec48937e93725622f1
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>
tools/perf/util/thread-stack.c
tools/perf/util/thread-stack.h