Searched refs:gp_counters (Results 1 – 4 of 4) sorted by relevance
35 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmu_get_pmc()223 pmu->gp_counters[i].type = KVM_PMC_GP; in amd_pmu_init()224 pmu->gp_counters[i].vcpu = vcpu; in amd_pmu_init()225 pmu->gp_counters[i].idx = i; in amd_pmu_init()226 pmu->gp_counters[i].current_config = 0; in amd_pmu_init()
95 counters = pmu->gp_counters; in intel_rdpmc_ecx_to_pmc()574 pmu->gp_counters[i].type = KVM_PMC_GP; in intel_pmu_init()575 pmu->gp_counters[i].vcpu = vcpu; in intel_pmu_init()576 pmu->gp_counters[i].idx = i; in intel_pmu_init()577 pmu->gp_counters[i].current_config = 0; in intel_pmu_init()
83 return &pmu->gp_counters[idx]; in kvm_pmc_idx_to_pmc()147 return &pmu->gp_counters[index]; in get_gp_pmc()
559 struct kvm_pmc gp_counters[KVM_MAX_NR_GP_COUNTERS]; member