]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Fix intel_pt_fup_event() assumptions about setting state type
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 10 Dec 2021 16:22:59 +0000 (18:22 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 11 Dec 2021 11:19:47 +0000 (08:19 -0300)
commitfc1800ad64e6a688d0e75d576ab7814b911a6515
tree163f4b365931434b8b75ad693bae259d85c0530f
parente52c66f7aac3d3dd1da8c0173c06885eaccb1818
perf intel-pt: Fix intel_pt_fup_event() assumptions about setting state type

intel_pt_fup_event() assumes it can overwrite the state type if there has
been an FUP event, but this is an unnecessary and unexpected constraint on
callers.

Fix by touching only the state type flags that are affected by an FUP
event.

Fixes: c1652e7ca9715 ("perf intel-pt: Add decoder support for ptwrite and power event packets")
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-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c