aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/ssh_parser.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2021-02-05 19:53:48 +0200
committerArnaldo Carvalho de Melo <[email protected]>2021-02-18 16:03:37 -0300
commit20aa39708a5999b7921b27482a756766272286ac (patch)
tree66de40f6014defdcb5cfc0153ba30bf2164ff433 /drivers/platform/surface/aggregator/ssh_parser.c
parent03fb0f859b45d1eb05c984ab4bd3bef67e45ede2 (diff)
perf intel-pt: Fix premature IPC
The code assumed a change in cycle count means accurate IPC. That is not correct, for example when sampling both branches and instructions, or at a FUP packet (which is not CYC-eligible) address. Fix by using an explicit flag to indicate when IPC can be sampled. 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]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions