linux-uconsole/tools/perf/util/intel-pt-decoder
Adrian Hunter 2f7d4603a0 perf intel-pt: Fix IPC with CYC threshold
[ Upstream commit 6af4b60033 ]

The code assumed every CYC-eligible packet has a CYC packet, which is not
the case when CYC thresholds are used. Fix by checking if a CYC packet is
actually present in that case.

Fixes: 5b1dc0fd1d ("perf intel-pt: Add support for samples to contain IPC ratio")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210205175350.23817-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:09 +01:00
..
Build perf intel-pt: Use shared x86 insn decoder 2019-08-31 22:27:52 -03:00
intel-pt-decoder.c perf intel-pt: Fix IPC with CYC threshold 2021-03-04 11:38:09 +01:00
intel-pt-decoder.h perf intel-pt: Fix IPC with CYC threshold 2021-03-04 11:38:09 +01:00
intel-pt-insn-decoder.c perf intel-pt: Use shared x86 insn decoder 2019-08-31 22:27:52 -03:00
intel-pt-insn-decoder.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
intel-pt-log.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
intel-pt-log.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
intel-pt-pkt-decoder.c perf tools: Remove unneeded semicolons 2020-04-30 10:48:32 -03:00
intel-pt-pkt-decoder.h perf intel-pt: Add new packets for PEBS via PT 2019-06-17 15:57:17 -03:00