Home
last modified time | relevance | path

Searched refs:kvm_pmc (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/arch/x86/kvm/
A Dpmu.h22 bool (*hw_event_available)(struct kvm_pmc *pmc);
23 bool (*pmc_is_enabled)(struct kvm_pmc *pmc);
25 struct kvm_pmc *(*rdpmc_ecx_to_pmc)(struct kvm_vcpu *vcpu,
27 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()
[all …]
A Dpmu.c96 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
168 static u64 pmc_get_pebs_precise_level(struct kvm_pmc *pmc) in pmc_get_pebs_precise_level()
244 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter()
257 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter()
385 static bool check_pmu_event_filter(struct kvm_pmc *pmc) in check_pmu_event_filter()
403 static void reprogram_counter(struct kvm_pmc *pmc) in reprogram_counter()
530 struct kvm_pmc *pmc; in kvm_pmu_rdpmc()
619 struct kvm_pmc *pmc = NULL; in kvm_pmu_cleanup()
645 static void kvm_pmu_incr_counter(struct kvm_pmc *pmc) in kvm_pmu_incr_counter()
659 static inline bool cpl_is_matched(struct kvm_pmc *pmc) in cpl_is_matched()
[all …]
/linux-6.3-rc2/arch/x86/kvm/svm/
A Dpmu.c28 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc()
38 static inline struct kvm_pmc *get_gp_pmc_amd(struct kvm_pmu *pmu, u32 msr, in get_gp_pmc_amd()
76 static bool amd_hw_event_available(struct kvm_pmc *pmc) in amd_hw_event_available()
84 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled()
99 static struct kvm_pmc *amd_rdpmc_ecx_to_pmc(struct kvm_vcpu *vcpu, in amd_rdpmc_ecx_to_pmc()
111 static struct kvm_pmc *amd_msr_idx_to_pmc(struct kvm_vcpu *vcpu, u32 msr) in amd_msr_idx_to_pmc()
114 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc()
125 struct kvm_pmc *pmc; in amd_pmu_get_msr()
147 struct kvm_pmc *pmc; in amd_pmu_set_msr()
214 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset()
/linux-6.3-rc2/arch/arm64/kvm/
A Dpmu-emul.c25 static void kvm_pmu_create_perf_event(struct kvm_pmc *pmc);
26 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc);
62 static bool kvm_pmc_is_64bit(struct kvm_pmc *pmc) in kvm_pmc_is_64bit()
68 static bool kvm_pmc_has_64bit_overflow(struct kvm_pmc *pmc) in kvm_pmc_has_64bit_overflow()
76 static bool kvm_pmu_counter_can_chain(struct kvm_pmc *pmc) in kvm_pmu_counter_can_chain()
92 static u64 kvm_pmu_get_pmc_value(struct kvm_pmc *pmc) in kvm_pmu_get_pmc_value()
172 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
187 static void kvm_pmu_stop_counter(struct kvm_pmc *pmc) in kvm_pmu_stop_counter()
274 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask()
306 struct kvm_pmc *pmc; in kvm_pmu_disable_counter_mask()
[all …]
/linux-6.3-rc2/arch/x86/kvm/vmx/
A Dpmu_intel.c45 struct kvm_pmc *pmc; in reprogram_fixed_counters()
79 struct kvm_pmc *pmc; in reprogram_counters()
88 static bool intel_hw_event_available(struct kvm_pmc *pmc) in intel_hw_event_available()
111 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled()
137 struct kvm_pmc *counters; in intel_rdpmc_ecx_to_pmc()
231 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc()
348 struct kvm_pmc *pmc; in intel_pmu_get_msr()
398 struct kvm_pmc *pmc; in intel_pmu_set_msr()
498 struct kvm_pmc *pmc; in setup_fixed_pmc_eventsel()
647 struct kvm_pmc *pmc = NULL; in intel_pmu_reset()
[all …]
/linux-6.3-rc2/arch/riscv/kvm/
A Dvcpu_pmu.c36 static u64 kvm_pmu_get_sample_period(struct kvm_pmc *pmc) in kvm_pmu_get_sample_period()
77 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
203 struct kvm_pmc *pmc; in pmu_ctr_read()
232 static int kvm_pmu_create_perf_event(struct kvm_pmc *pmc, struct perf_event_attr *attr, in kvm_pmu_create_perf_event()
344 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_start()
401 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_stop()
466 struct kvm_pmc *pmc = NULL; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
549 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_init()
614 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_deinit()
/linux-6.3-rc2/arch/riscv/include/asm/
A Dkvm_vcpu_pmu.h30 struct kvm_pmc { struct
43 struct kvm_pmc pmc[RISCV_KVM_MAX_COUNTERS]; argument
/linux-6.3-rc2/include/kvm/
A Darm_pmu.h17 struct kvm_pmc { struct
30 struct kvm_pmc pmc[ARMV8_PMU_MAX_COUNTERS]; argument
/linux-6.3-rc2/arch/x86/include/asm/
A Dkvm_host.h492 struct kvm_pmc { struct
531 struct kvm_pmc gp_counters[KVM_INTEL_PMC_MAX_GENERIC];
532 struct kvm_pmc fixed_counters[KVM_PMC_MAX_FIXED];

Completed in 27 milliseconds