]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Fix sync state when a PSB (synchronization) packet is found
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 10 Dec 2021 16:22:58 +0000 (18:22 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 11 Dec 2021 11:19:47 +0000 (08:19 -0300)
commite52c66f7aac3d3dd1da8c0173c06885eaccb1818
tree21256a8f759eb8b3d0ac78b329f427f094cda44a
parent465b5199bcfb5d16445b4fbbeba51df04402640d
perf intel-pt: Fix sync state when a PSB (synchronization) packet is found

When syncing, it may be that branch packet generation is not enabled at
that point, in which case there will not immediately be a control-flow
packet, so some packets before a control flow packet turns up, get
ignored.  However, the decoder is in sync as soon as a PSB is found, so
the state should be set accordingly.

Fixes: 8511b3d29c2c12 ("perf tools: Add Intel PT decoder")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v5.15+
Link: https://lore.kernel.org/r/20211210162303.2288710-3-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c