Lines Matching refs:kvm_pmc
27 unsigned int (*pmc_perf_hw_id)(struct kvm_pmc *pmc);
29 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
30 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
31 struct kvm_pmc *(*rdpmc_ecx_to_pmc)(struct kvm_vcpu *vcpu,
33 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, u32 msr);
43 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
50 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
62 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
72 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
80 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
85 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
90 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
105 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
119 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
133 static inline u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value) in get_sample_period()
142 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel);
143 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int fixed_idx);