Lines Matching defs:pmcs
265 perfmon_write_counters(thread_t thread, uint64_t *pmcs)
271 kprintf("perfmon_write_counters (CPU%d): mmcr0 = %016llX, pmc1=%llX pmc2=%llX pmc3=%llX pmc4=%llX pmc5=%llX pmc6=%llX pmc7=%llX pmc8=%llX\n", cpu_number(), sv->save_mmcr0, pmcs[PMC_1], pmcs[PMC_2], pmcs[PMC_3], pmcs[PMC_4], pmcs[PMC_5], pmcs[PMC_6], pmcs[PMC_7], pmcs[PMC_8]);
276 sv->save_pmc[curPMC] = pmcs[curPMC] & 0x7FFFFFFF;
277 thread->machine.pmcovfl[curPMC] = (pmcs[curPMC]>>31) & 0xFFFFFFFF;
284 perfmon_read_counters(thread_t thread, uint64_t *pmcs)
291 pmcs[curPMC] = thread->machine.pmcovfl[curPMC];
292 pmcs[curPMC] = pmcs[curPMC]<<31;
293 pmcs[curPMC] |= (sv->save_pmc[curPMC] & 0x7FFFFFFF);
301 pmcs[PMC_7] = 0;
302 pmcs[PMC_8] = 0;
309 kprintf("perfmon_read_counters (CPU%d): mmcr0 = %016llX pmc1=%llX pmc2=%llX pmc3=%llX pmc4=%llX pmc5=%llX pmc6=%llX pmc7=%llX pmc8=%llX\n", cpu_number(), sv->save_mmcr0, pmcs[PMC_1], pmcs[PMC_2], pmcs[PMC_3], pmcs[PMC_4], pmcs[PMC_5], pmcs[PMC_6], pmcs[PMC_7], pmcs[PMC_8]);
787 // kprintf("perfmon_control: action=0x%x pmc=%d val=%d pmcs=0x%x\n", action, pmc, val, usr_pmcs_p);