diff options
| author | Sean Christopherson <[email protected]> | 2023-06-07 01:02:03 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2023-08-02 23:44:36 +0000 |
| commit | 0033fa35491680bce65ff78fb41445f472aa5baa (patch) | |
| tree | a4ceb5db409ccef617ddf1c592266c9a5e8fe377 /tools/perf/scripts/python/flamegraph.py | |
| parent | Linux 6.5-rc2 (diff) | |
| download | kernel-0033fa35491680bce65ff78fb41445f472aa5baa.tar.gz kernel-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 <[email protected]>
Cc: Like Xu <[email protected]>
Reviewed-by: Like Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
