Lines Matching refs:pmu
4 #define vcpu_to_pmu(vcpu) (&(vcpu)->arch.pmu)
5 #define pmu_to_vcpu(pmu) (container_of((pmu), struct kvm_vcpu, arch.pmu)) argument
6 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu)
18 unsigned (*find_arch_event)(struct kvm_pmu *pmu, u8 event_select,
22 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
35 struct kvm_pmu *pmu = pmc_to_pmu(pmc); in pmc_bitmask() local
37 return pmu->counter_bitmask[pmc->type]; in pmc_bitmask()
80 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() argument
83 if (msr >= base && msr < base + pmu->nr_arch_gp_counters) in get_gp_pmc()
84 return &pmu->gp_counters[msr - base]; in get_gp_pmc()
90 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc() argument
94 if (msr >= base && msr < base + pmu->nr_arch_fixed_counters) in get_fixed_pmc()
95 return &pmu->fixed_counters[msr - base]; in get_fixed_pmc()
102 void reprogram_counter(struct kvm_pmu *pmu, int pmc_idx);