Lines Matching defs:counter
226 reg = &arch_cntr_pair[index].counter;
337 static unsigned long long xen_amd_read_pmc(int counter)
348 msr = amd_counters_base + (counter * amd_msr_step);
354 return counter_regs[counter];
357 static unsigned long long xen_intel_read_pmc(int counter)
369 if (counter & (1 << INTEL_PMC_TYPE_SHIFT))
370 msr = MSR_CORE_PERF_FIXED_CTR0 + (counter & 0xffff);
372 msr = MSR_IA32_PERFCTR0 + counter;
378 if (counter & (1 << INTEL_PMC_TYPE_SHIFT)) {
380 return fixed_counters[counter & 0xffff];
384 return arch_cntr_pair[counter].counter;
387 unsigned long long xen_read_pmc(int counter)
390 return xen_amd_read_pmc(counter);
392 return xen_intel_read_pmc(counter);