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)
50 static inline u64 pmc_read_counter(struct kvm_pmc *pmc)
62 static inline void pmc_release_perf_event(struct kvm_pmc *pmc)
72 static inline void pmc_stop_counter(struct kvm_pmc *pmc)
80 static inline bool pmc_is_gp(struct kvm_pmc *pmc)
85 static inline bool pmc_is_fixed(struct kvm_pmc *pmc)
90 static inline bool pmc_is_enabled(struct kvm_pmc *pmc)
105 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr,
119 static inline struct kvm_pmc *get_fixed_pmc(struct kvm_pmu *pmu, u32 msr)
133 static inline u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value)
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);