perf thread-stack: Add thread_stack__sample_late()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 1 Apr 2020 10:16:06 +0000 (13:16 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Apr 2020 15:19:15 +0000 (12:19 -0300)
commit4fef41bfb1d8d2ada4a18eb3ab80c2682bcbae12
treef3f1c211ac64deb4bcbf98d3b6332dd523fd0d2a
parent1c5c25b3fdbd7035f6d53a1a99b5afd577ce13e1
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>
tools/perf/util/thread-stack.c
tools/perf/util/thread-stack.h