Skip to content
Commit 0033fa35 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: x86/pmu: Use enums instead of hardcoded magic for arch event indices



Add "enum intel_pmu_architectural_events" to replace the magic numbers for
the (pseudo-)architectural events, and to give a meaningful name to each
event so that new readers don't need psychic powers to understand what the
code is doing.

Cc: Aaron Lewis <aaronlewis@google.com>
Cc: Like Xu <like.xu.linux@gmail.com>
Reviewed-by: default avatarLike Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20230607010206.1425277-2-seanjc@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent fdf0eaf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment