Lines Matching refs:pmcs
61 unsigned long pmcs[MAX_HWEVENTS]; member
159 return cpuhw->pmcs[idx]; in get_pmcs_ext_regs()
696 unsigned pmcs[6]; in pmao_restore_workaround() local
752 pmcs[0] = mfspr(SPRN_PMC1); in pmao_restore_workaround()
753 pmcs[1] = mfspr(SPRN_PMC2); in pmao_restore_workaround()
754 pmcs[2] = mfspr(SPRN_PMC3); in pmao_restore_workaround()
755 pmcs[3] = mfspr(SPRN_PMC4); in pmao_restore_workaround()
756 pmcs[4] = mfspr(SPRN_PMC5); in pmao_restore_workaround()
757 pmcs[5] = mfspr(SPRN_PMC6); in pmao_restore_workaround()
771 mtspr(SPRN_PMC1, pmcs[0]); in pmao_restore_workaround()
772 mtspr(SPRN_PMC2, pmcs[1]); in pmao_restore_workaround()
773 mtspr(SPRN_PMC3, pmcs[2]); in pmao_restore_workaround()
774 mtspr(SPRN_PMC4, pmcs[3]); in pmao_restore_workaround()
775 mtspr(SPRN_PMC5, pmcs[4]); in pmao_restore_workaround()
776 mtspr(SPRN_PMC6, pmcs[5]); in pmao_restore_workaround()
906 u32 pmcs[MAX_HWEVENTS]; in perf_event_print_debug() local
923 pmcs[i] = read_pmc(i + 1); in perf_event_print_debug()
926 pmcs[i] = 0xdeadbeef; in perf_event_print_debug()
929 pmcs[0], pmcs[1], pmcs[2], pmcs[3]); in perf_event_print_debug()
933 pmcs[4], pmcs[5], pmcs[6], pmcs[7]); in perf_event_print_debug()
2412 cpuhw->pmcs[i] = read_pmc(i + 1); in __perf_event_interrupt()
2417 if (!pmc_overflow(cpuhw->pmcs[i])) in __perf_event_interrupt()
2432 record_and_restart(event, cpuhw->pmcs[i], regs); in __perf_event_interrupt()
2454 if (pmc_overflow_power7(cpuhw->pmcs[event->hw.idx - 1])) { in __perf_event_interrupt()
2458 cpuhw->pmcs[event->hw.idx - 1], in __perf_event_interrupt()
2483 memset(&cpuhw->pmcs, 0, sizeof(cpuhw->pmcs)); in __perf_event_interrupt()