diff options
author | 2023-06-06 18:02:03 -0700 | |
---|---|---|
committer | 2023-08-02 16:44:36 -0700 | |
commit | 0033fa35491680bce65ff78fb41445f472aa5baa (patch) | |
tree | a4ceb5db409ccef617ddf1c592266c9a5e8fe377 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.5-rc2 (diff) | |
download | linux-rng-0033fa35491680bce65ff78fb41445f472aa5baa.tar.xz linux-rng-0033fa35491680bce65ff78fb41445f472aa5baa.zip |
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: Like Xu <likexu@tencent.com>
Link: https://lore.kernel.org/r/20230607010206.1425277-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions