aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLike Xu <likexu@tencent.com>2023-06-02 18:10:54 -0700
committerSean Christopherson <seanjc@google.com>2023-06-06 17:31:44 -0700
commitd338d8789e64b2d8ed2f82f9364c415d6efa118d (patch)
tree000419ab62a2020cea3a1290dda2c7fa810afd15 /tools/perf/scripts/python/export-to-postgresql.py
parent6a08083f294cb623fbc882417b28c5646b01f4bf (diff)
KVM: x86/pmu: Advertise PERFCTR_CORE iff the min nr of counters is met
Enable and advertise PERFCTR_CORE if and only if the minimum number of required counters are available, i.e. if perf says there are less than six general purpose counters. Opportunistically, use kvm_cpu_cap_check_and_set() instead of open coding the check for host support. Suggested-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Like Xu <likexu@tencent.com> [sean: massage shortlog and changelog] Link: https://lore.kernel.org/r/20230603011058.1038821-9-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions