diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-21 12:14:14 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-09-25 12:45:53 +0200 |
| commit | a634e4536ec22a17e2391fd5ed38c06ad99cbf99 (patch) | |
| tree | d7bdccb1d6cdf0fd4a982f1d913c459cd690c99b /tools/perf/scripts/python | |
| parent | b7b84fff2bd630b593ee47a733381e3886aac1a7 (diff) | |
perf/x86: KVM: Have perf define a dedicated struct for getting guest PEBS data
Have perf define a struct for getting guest PEBS data from KVM instead of
poking into the kvm_pmu structure. Passing in an entire "struct kvm_pmu"
_as an opaque pointer_ to get at four fields is silly, especially since
one of the fields exists purely to convey information to perf, i.e. isn't
used by KVM.
Perf should also own its APIs, i.e. define what fields/data it needs, not
rely on KVM to throw fields into data structures that effectively hold
KVM-internal state.
Opportunistically rephrase the comment about cross-mapped counters to
explain *why* PEBS needs to be disabled.
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>
Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://patch.msgid.link/20260921191418.950933-7-seanjc@google.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
