]> Git Repo - linux.git/commit
perf intel-pt: Fix IPC with CYC threshold
authorAdrian Hunter <[email protected]>
Fri, 5 Feb 2021 17:53:49 +0000 (19:53 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 18 Feb 2021 19:03:54 +0000 (16:03 -0300)
commit6af4b60033e0ce0332fcdf256c965ad41942821a
treea75e9208eb4e51cef3c05662bcac00f9d0f571ff
parent20aa39708a5999b7921b27482a756766272286ac
perf intel-pt: Fix IPC with CYC threshold

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: 5b1dc0fd1da06 ("perf intel-pt: Add support for samples to contain IPC ratio")
Signed-off-by: Adrian Hunter <[email protected]>
Reviewed-by: Andi Kleen <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
tools/perf/util/intel-pt-decoder/intel-pt-decoder.h
tools/perf/util/intel-pt.c
This page took 0.050353 seconds and 4 git commands to generate.