perf auxtrace: Add auxtrace_record__read_finish()
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 17 Feb 2020 08:23:00 +0000 (10:23 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Feb 2020 13:13:29 +0000 (10:13 -0300)
commitad60ba0c2e6da6ff573c5ac57708fbc443bbb473
tree91777e827d27ef036b1d9dc50cd1ad66970e846f
parentd6bc34c5ec18c3544c4b0d85963768dfbcd24184
perf auxtrace: Add auxtrace_record__read_finish()

All ->read_finish() implementations are doing the same thing. Add a
helper function so that they can share the same implementation.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Tested-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kim Phillips <kim.phillips@arm.com>
Cc: Wei Li <liwei391@huawei.com>
Link: http://lore.kernel.org/lkml/20200217082300.6301-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm/util/cs-etm.c
tools/perf/arch/arm64/util/arm-spe.c
tools/perf/arch/x86/util/intel-bts.c
tools/perf/arch/x86/util/intel-pt.c
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h