summaryrefslogtreecommitdiff
path: root/tools/perf/util/pmu.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-02-05 20:53:49 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-02-18 22:03:54 +0300
commit6af4b60033e0ce0332fcdf256c965ad41942821a (patch)
treea75e9208eb4e51cef3c05662bcac00f9d0f571ff /tools/perf/util/pmu.c
parent20aa39708a5999b7921b27482a756766272286ac (diff)
downloadlinux-6af4b60033e0ce0332fcdf256c965ad41942821a.tar.xz
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 <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>
Diffstat (limited to 'tools/perf/util/pmu.c')
0 files changed, 0 insertions, 0 deletions