perf intel-pt: Add support for lookahead
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Jun 2019 13:00:08 +0000 (16:00 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jun 2019 19:20:12 +0000 (16:20 -0300)
commitda9000ae35027fb7305b8cad0b37df71937ad578
tree2e52e7ea942e9c7de19e204bd41aba1f2e9f975f
parente96f7df8807615b96af59f8f8bc6263a7adc27b7
perf intel-pt: Add support for lookahead

Implement the lookahead callback to let the decoder access subsequent
buffers. intel_pt_lookahead() manages the buffer lifetime and calls the
decoder for each buffer until the decoder returns a non-zero value.

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-11-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c