diff options
author | Adrian Hunter <[email protected]> | 2021-02-05 19:53:49 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-02-18 16:03:54 -0300 |
commit | 6af4b60033e0ce0332fcdf256c965ad41942821a (patch) | |
tree | a75e9208eb4e51cef3c05662bcac00f9d0f571ff /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 20aa39708a5999b7921b27482a756766272286ac (diff) |
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]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions