perf intel-pt: Fix overlap detection to identify consecutive buffers correctly
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 7 Mar 2018 14:02:21 +0000 (16:02 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Mar 2018 13:05:54 +0000 (10:05 -0300)
commit117db4b27bf08dba412faf3924ba55fe970c57b8
treebfb83767da106b8f0f5f40b7523f9f00decaf49d
parentb9bae2c841b73eac6bfed510bc24a3051754ff51
perf intel-pt: Fix overlap detection to identify consecutive buffers correctly

Overlap detection was not not updating the buffer's 'consecutive' flag.
Marking buffers consecutive has the advantage that decoding begins from
the start of the buffer instead of the first PSB. Fix overlap detection
to identify consecutive buffers correctly.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1520431349-30689-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
tools/perf/util/intel-pt-decoder/intel-pt-decoder.h
tools/perf/util/intel-pt.c