diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-21 12:14:16 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-09-25 12:45:53 +0200 |
| commit | 57c76478333012159b5cbec89527f925011cdefd (patch) | |
| tree | 8dc1fbbb876a7898a4c36ed1bd2c71021f13f152 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 31f7cf337ce717666ce29fbd793f06435eb48408 (diff) | |
KVM: VMX: Drop a redundant pmu->global_ctrl check when processing pebs_enable
Drop a redundant check that a PMC is globally enabled when looking for
PEBS counters that are cross-mapped between the guest and the host. The
for-loop explicitly iterates over pmu->global_ctrl, and since PEBS requires
PMU v2+, kvm_pmu_has_perf_global_ctrl() must be true, and thus
pmc_is_globally_enabled() is simply checking that the bit is set in
pmu->global_ctrl.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://patch.msgid.link/20260921191418.950933-9-seanjc@google.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
