Searched refs:kvm_pmc (Results 1 – 5 of 5) sorted by relevance
/arch/x86/kvm/ |
D | pmu.h | 21 bool (*pmc_is_enabled)(struct kvm_pmc *pmc); 22 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 23 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, unsigned idx); 33 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask() 40 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter() 52 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter() 61 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp() 66 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed() 71 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled() 80 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() [all …]
|
D | pmu_amd.c | 60 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled() 65 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() 81 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, unsigned idx) in amd_msr_idx_to_pmc() 84 struct kvm_pmc *counters; in amd_msr_idx_to_pmc() 108 struct kvm_pmc *pmc; in amd_pmu_get_msr() 129 struct kvm_pmc *pmc; in amd_pmu_set_msr() 185 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset()
|
D | pmu.c | 62 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow() 76 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr() 99 static void pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type, in pmc_reprogram_counter() 136 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() 178 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter() 198 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() 223 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() 243 struct kvm_pmc *pmc; in kvm_pmu_rdpmc()
|
D | pmu_intel.c | 45 struct kvm_pmc *pmc; in reprogram_fixed_counters() 97 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled() 104 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() 128 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, in intel_msr_idx_to_pmc() 133 struct kvm_pmc *counters; in intel_msr_idx_to_pmc() 170 struct kvm_pmc *pmc; in intel_pmu_get_msr() 202 struct kvm_pmc *pmc; in intel_pmu_set_msr() 332 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in intel_pmu_reset()
|
/arch/x86/include/asm/ |
D | kvm_host.h | 376 struct kvm_pmc { struct 397 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC]; argument 398 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];
|