Skip to content
Commit 69fe5f17 authored by Sandipan Das's avatar Sandipan Das Committed by Greg Kroah-Hartman
Browse files

perf/x86/amd/core: Update and fix stalled-cycles-* events for Zen 2 and later



[ Upstream commit c7b2edd8 ]

AMD processors based on Zen 2 and later microarchitectures do not
support PMCx087 (instruction pipe stalls) which is used as the backing
event for "stalled-cycles-frontend" and "stalled-cycles-backend".

Use PMCx0A9 (cycles where micro-op queue is empty) instead to count
frontend stalls and remove the entry for backend stalls since there
is no direct replacement.

Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Reviewed-by: default avatarIan Rogers <irogers@google.com>
Fixes: 3fe3331b ("perf/x86/amd: Add event map for AMD Family 17h")
Link: https://lore.kernel.org/r/03d7fc8fa2a28f9be732116009025bdec1b3ec97.1711352180.git.sandipan.das@amd.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d2be2f87
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment