Lines Matching refs:kvm_pmc
30 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
31 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);
32 struct kvm_pmc *(*rdpmc_ecx_to_pmc)(struct kvm_vcpu *vcpu,
34 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, u32 msr);
44 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
51 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
63 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
73 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
81 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
86 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
91 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
106 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc()
120 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr) in get_fixed_pmc()
134 static inline u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value) in get_sample_period()
143 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel);
144 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int fixed_idx);