Home
last modified time | relevance | path

Searched refs:perf_capabilities (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_pmu_caps_test.c21 static union perf_capabilities { union
41 static const union perf_capabilities immutable_caps = {
49 static const union perf_capabilities format_caps = {
153 union perf_capabilities val = host_cap; in KVM_ONE_VCPU_TEST()
H A Dpmu_counters_test.c39 uint64_t perf_capabilities) in pmu_vm_create_with_one_vcpu() argument
51 vcpu_set_msr(*vcpu, MSR_IA32_PERF_CAPABILITIES, perf_capabilities); in pmu_vm_create_with_one_vcpu()
296 static void test_arch_events(uint8_t pmu_version, uint64_t perf_capabilities, in test_arch_events() argument
307 pmu_version, perf_capabilities); in test_arch_events()
460 static void test_gp_counters(uint8_t pmu_version, uint64_t perf_capabilities, in test_gp_counters() argument
467 pmu_version, perf_capabilities); in test_gp_counters()
526 static void test_fixed_counters(uint8_t pmu_version, uint64_t perf_capabilities, in test_fixed_counters() argument
534 pmu_version, perf_capabilities); in test_fixed_counters()
/linux/arch/x86/kvm/vmx/
H A Dpmu_intel.c116 return vcpu->arch.perf_capabilities; in vcpu_get_perf_capabilities()
153 u64 perf_capabilities; in intel_is_valid_msr() local
166 perf_capabilities = vcpu_get_perf_capabilities(vcpu); in intel_is_valid_msr()
167 ret = (perf_capabilities & PERF_CAP_PEBS_BASELINE) && in intel_is_valid_msr()
168 ((perf_capabilities & PERF_CAP_PEBS_FORMAT) > 3); in intel_is_valid_msr()
466 u64 perf_capabilities; in intel_pmu_refresh() local
544 perf_capabilities = vcpu_get_perf_capabilities(vcpu); in intel_pmu_refresh()
546 (perf_capabilities & PMU_CAP_LBR_FMT)) in intel_pmu_refresh()
554 if (perf_capabilities & PERF_CAP_PEBS_FORMAT) { in intel_pmu_refresh()
555 if (perf_capabilities & PERF_CAP_PEBS_BASELINE) { in intel_pmu_refresh()
/linux/arch/x86/events/
H A Dperf_event.h610 union perf_capabilities { union
695 union perf_capabilities intel_cap;
863 union perf_capabilities intel_cap;
H A Dcore.c1143 union perf_capabilities intel_cap = hybrid(cpuc->pmu, intel_cap); in collect_event()
1613 union perf_capabilities intel_cap = hybrid(cpuc->pmu, intel_cap); in x86_pmu_del()
/linux/arch/x86/include/asm/
H A Dkvm_host.h778 u64 perf_capabilities; member
/linux/arch/x86/events/intel/
H A Dcore.c3943 union perf_capabilities *intel_cap = &hybrid(event->pmu, intel_cap); in intel_pmu_has_cap()
5017 union perf_capabilities perf_cap; in intel_pmu_cpu_starting()
/linux/arch/x86/kvm/
H A Dx86.c3811 if (vcpu->arch.perf_capabilities == data) in kvm_set_msr_common()
3814 vcpu->arch.perf_capabilities = data; in kvm_set_msr_common()
4264 msr_info->data = vcpu->arch.perf_capabilities; in kvm_get_msr_common()
12302 vcpu->arch.perf_capabilities = kvm_caps.supported_perf_cap; in kvm_arch_vcpu_create()