perf intel-pt: Fix "Unexpected indirect branch" error
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 31 May 2018 10:23:45 +0000 (13:23 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Jun 2018 15:52:08 +0000 (12:52 -0300)
commit9fb523363f6e3984457fee95bb7019395384ffa7
tree5acf83a6f36d6838403ddc94a97518a9c0f39455
parentdd27b87ab5fcf3ea1c060b5e3ab5d31cc78e9f4c
perf intel-pt: Fix "Unexpected indirect branch" error

Some Atom CPUs can produce FUP packets that contain NLIP (next linear
instruction pointer) instead of CLIP (current linear instruction
pointer).  That will result in "Unexpected indirect branch" errors. Fix
by comparing IP to NLIP in that case.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1527762225-26024-5-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