]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Fix some PGE (packet generation enable/control flow packets) usage
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 10 Dec 2021 16:22:57 +0000 (18:22 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 11 Dec 2021 11:19:47 +0000 (08:19 -0300)
commit465b5199bcfb5d16445b4fbbeba51df04402640d
treee3a5be2f5251862ba4ea583a9fe1157169c77fc8
parentde55f180e4c62efdeed956c0dda420b0d7026a39
perf intel-pt: Fix some PGE (packet generation enable/control flow packets) usage

Packet generation enable (PGE) refers to whether control flow (COFI)
packets are being produced.

PGE may be false even when branch-tracing is enabled, due to being
out-of-context, or outside a filter address range.  Fix some missing PGE
usage.

Fixes: 04a8758c54bc7a ("perf intel-pt: Add support for decoding FUP/TIP only")
Fixes: cc5dabbe0e62fc ("perf intel-pt: Allow decoding with branch tracing disabled")
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-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c