OSDN Git Service

perf intel-pt: Fix error recovery from missing TIP packet
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 7 Mar 2018 14:02:23 +0000 (16:02 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Mar 2018 13:05:55 +0000 (10:05 -0300)
commit1c196a6c771c47a2faa63d38d913e03284f73a16
tree1e78541f36c072243d72599123a1a58f0803dd5d
parent63d8e38f6ae6c36dd5b5ba0e8c112e8861532ea2
perf intel-pt: Fix error recovery from missing TIP packet

When a TIP packet is expected but there is a different packet, it is an
error. However the unexpected packet might be something important like a
TSC packet, so after the error, it is necessary to continue from there,
rather than the next packet. That is achieved by setting pkt_step to
zero.

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-4-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