diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-21 12:14:17 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-09-25 12:45:54 +0200 |
| commit | 193ef44e32619550478fce9d0b91edc0046ed8c3 (patch) | |
| tree | 523c472725f45ad5906f7531faac63c08a6a11b1 /tools/perf/scripts/python | |
| parent | 57c76478333012159b5cbec89527f925011cdefd (diff) | |
KVM: VMX: Only tell perf to enable PEBS counters for fully enabled PMCs
When passing the guest's requested PEBS_ENABLE (or rather, KVM's version
of PEBS_ENABLE on behalf of the guest), omit counters that are locally
disable and/or don't have a perf event (due to contention), in addition to
omitting counters that are cross-mapped in the host.
In practice, this should be a nop as perf will already have disabled the
associated counter, i.e. cpuc->pebs_enabled should have been cleared, but
paranoia is cheap, and the existing code _looks_ wrong.
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-10-seanjc@google.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
