perf intel-pt: Factor out intel_pt_get_buffer()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Jun 2019 13:00:07 +0000 (16:00 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jun 2019 19:20:12 +0000 (16:20 -0300)
commite96f7df8807615b96af59f8f8bc6263a7adc27b7
tree030b55ed8083b5bc74a94caa8387144bd633e7fe
parenta7fa19f5a255cc8970202d5c54092089a01fc042
perf intel-pt: Factor out intel_pt_get_buffer()

Factor out intel_pt_get_buffer() so it can be reused.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190604130017.31207-10-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c