aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-06-07 01:02:05 +0000
committerSean Christopherson <[email protected]>2023-08-02 23:44:36 +0000
commit6d88d0ee5de142921598e5c0041792bbd860913d (patch)
tree3007935e0c04149761293bab3900647955fb3ce0 /tools/perf/scripts/python/flamegraph.py
parentKVM: x86/pmu: Simplify intel_hw_event_available() (diff)
downloadkernel-6d88d0ee5de142921598e5c0041792bbd860913d.tar.gz
kernel-6d88d0ee5de142921598e5c0041792bbd860913d.zip
KVM: x86/pmu: Require nr fixed_pmc_events to match nr max fixed counters
Assert that the number of known fixed_pmc_events matches the max number of fixed counters supported by KVM, and clean up related code. Opportunistically extend setup_fixed_pmc_eventsel()'s use of array_index_nospec() to cover fixed_counters, as nr_arch_fixed_counters is set based on userspace input (but capped using KVM-controlled values). 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