Lines Matching defs:arm_pmu
12 #include <linux/perf/arm_pmu.h>
15 #include <kvm/arm_pmu.h>
542 struct arm_pmu *cpu_pmu = to_arm_pmu(perf_event->pmu);
667 struct arm_pmu *pmu = kvm->arch.arm_pmu;
686 struct arm_pmu *arm_pmu = vcpu->kvm->arch.arm_pmu;
725 attr.type = arm_pmu->pmu.type;
787 void kvm_host_pmu_init(struct arm_pmu *pmu)
804 entry->arm_pmu = pmu;
808 static struct arm_pmu *kvm_pmu_probe_armpmu(void)
811 struct arm_pmu *pmu;
835 pmu = entry->arm_pmu;
844 static u64 __compute_pmceid(struct arm_pmu *pmu, bool pmceid1)
854 static u64 compute_pmceid0(struct arm_pmu *pmu)
865 static u64 compute_pmceid1(struct arm_pmu *pmu)
881 struct arm_pmu *cpu_pmu = vcpu->kvm->arch.arm_pmu;
1012 struct arm_pmu *arm_pmu = kvm->arch.arm_pmu;
1022 * The arm_pmu->cntr_mask considers the fixed counter(s) as well.
1025 return bitmap_weight(arm_pmu->cntr_mask, ARMV8_PMU_MAX_GENERAL_COUNTERS);
1046 static void kvm_arm_set_pmu(struct kvm *kvm, struct arm_pmu *arm_pmu)
1050 kvm->arch.arm_pmu = arm_pmu;
1068 struct arm_pmu *arm_pmu = kvm_pmu_probe_armpmu();
1070 if (!arm_pmu)
1073 kvm_arm_set_pmu(kvm, arm_pmu);
1081 struct arm_pmu *arm_pmu;
1088 arm_pmu = entry->arm_pmu;
1089 if (arm_pmu->pmu.type == pmu_id) {
1091 (kvm->arch.pmu_filter && kvm->arch.arm_pmu != arm_pmu)) {
1096 kvm_arm_set_pmu(kvm, arm_pmu);
1097 cpumask_copy(kvm->arch.supported_cpus, &arm_pmu->supported_cpus);
1111 if (!kvm->arch.arm_pmu)