Searched refs:kvm_pmc (Results 1 – 7 of 7) sorted by relevance
| /Linux-v4.19/arch/x86/kvm/ |
| D | pmu.h | 26 bool (*pmc_is_enabled)(struct kvm_pmc *pmc); 27 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 28 struct kvm_pmc *(*msr_idx_to_pmc)(struct kvm_vcpu *vcpu, unsigned idx); 38 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask() 45 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter() 57 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter() 66 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp() 71 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed() 76 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled() 85 static inline struct kvm_pmc *get_gp_pmc(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc() [all …]
|
| D | pmu_amd.c | 100 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 157 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled() 162 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() 189 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, unsigned idx) in amd_msr_idx_to_pmc() 192 struct kvm_pmc *counters; in amd_msr_idx_to_pmc() 216 struct kvm_pmc *pmc; in amd_pmu_get_msr() 237 struct kvm_pmc *pmc; in amd_pmu_set_msr() 299 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() 143 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() 185 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter() 205 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() 230 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() 284 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()
|
| /Linux-v4.19/virt/kvm/arm/ |
| D | pmu.c | 36 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value() 73 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc) in kvm_pmu_stop_counter() 116 struct kvm_pmc *pmc = &pmu->pmc[i]; in kvm_pmu_vcpu_destroy() 148 struct kvm_pmc *pmc; in kvm_pmu_enable_counter() 177 struct kvm_pmc *pmc; in kvm_pmu_disable_counter() 276 static inline struct kvm_vcpu *kvm_pmc_to_vcpu(struct kvm_pmc *pmc) in kvm_pmc_to_vcpu() 294 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_pmu_perf_overflow() 344 struct kvm_pmc *pmc; in kvm_pmu_handle_pmcr() 390 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_set_counter_event_type()
|
| /Linux-v4.19/include/kvm/ |
| D | arm_pmu.h | 28 struct kvm_pmc { struct 36 struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS]; argument
|
| /Linux-v4.19/arch/x86/include/asm/ |
| D | kvm_host.h | 410 struct kvm_pmc { struct 431 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC]; argument 432 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];
|