Searched refs:kvm_pmc (Results 1 – 7 of 7) sorted by relevance
| /OK3568_Linux_fs/kernel/arch/x86/kvm/ |
| H A D | pmu.h | 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() [all …]
|
| H A D | pmu.c | 64 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow() 77 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() 144 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter() 156 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter() 181 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() 241 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter() 279 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() 301 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() 364 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/svm/ |
| H A D | pmu.c | 114 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd() 145 static unsigned int amd_pmc_perf_hw_id(struct kvm_pmc *pmc) in amd_pmc_perf_hw_id() 177 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled() 182 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() 209 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc() 213 struct kvm_pmc *counters; in amd_rdpmc_ecx_to_pmc() 229 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc() 232 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() 243 struct kvm_pmc *pmc; in amd_pmu_get_msr() 265 struct kvm_pmc *pmc; in amd_pmu_set_msr() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kvm/vmx/ |
| H A D | pmu_intel.c | 45 struct kvm_pmc *pmc; in reprogram_fixed_counters() 71 static unsigned int intel_pmc_perf_hw_id(struct kvm_pmc *pmc) in intel_pmc_perf_hw_id() 103 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled() 113 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() 137 static struct kvm_pmc *intel_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in intel_rdpmc_ecx_to_pmc() 142 struct kvm_pmc *counters; in intel_rdpmc_ecx_to_pmc() 172 static inline struct kvm_pmc *get_fw_gp_pmc(struct kvm_pmu *pmu, u32 msr) in get_fw_gp_pmc() 202 static struct kvm_pmc *intel_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in intel_msr_idx_to_pmc() 205 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc() 217 struct kvm_pmc *pmc; in intel_pmu_get_msr() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/kvm/ |
| H A D | pmu-emul.c | 19 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc); 49 static struct kvm_vcpu *kvm_pmc_to_vcpu(struct kvm_pmc *pmc) in kvm_pmc_to_vcpu() 64 static bool kvm_pmu_pmc_is_chained(struct kvm_pmc *pmc) in kvm_pmu_pmc_is_chained() 87 static struct kvm_pmc *kvm_pmu_get_canonical_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_canonical_pmc() 95 static struct kvm_pmc *kvm_pmu_get_alternate_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_alternate_pmc() 129 struct kvm_pmc *pmc) in kvm_pmu_get_pair_counter_value() 167 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value() 202 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event() 218 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc) in kvm_pmu_stop_counter() 312 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask() [all …]
|
| /OK3568_Linux_fs/kernel/include/kvm/ |
| H A D | arm_pmu.h | 25 struct kvm_pmc { struct 32 struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS]; argument
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | kvm_host.h | 416 struct kvm_pmc { struct 445 struct kvm_pmc gp_counters[INTEL_PMC_MAX_GENERIC]; argument 446 struct kvm_pmc fixed_counters[INTEL_PMC_MAX_FIXED];
|