Lines Matching refs:pmcs

60 	unsigned long pmcs[MAX_HWEVENTS];  member
158 return cpuhw->pmcs[idx]; in get_pmcs_ext_regs()
695 unsigned pmcs[6]; in pmao_restore_workaround() local
751 pmcs[0] = mfspr(SPRN_PMC1); in pmao_restore_workaround()
752 pmcs[1] = mfspr(SPRN_PMC2); in pmao_restore_workaround()
753 pmcs[2] = mfspr(SPRN_PMC3); in pmao_restore_workaround()
754 pmcs[3] = mfspr(SPRN_PMC4); in pmao_restore_workaround()
755 pmcs[4] = mfspr(SPRN_PMC5); in pmao_restore_workaround()
756 pmcs[5] = mfspr(SPRN_PMC6); in pmao_restore_workaround()
770 mtspr(SPRN_PMC1, pmcs[0]); in pmao_restore_workaround()
771 mtspr(SPRN_PMC2, pmcs[1]); in pmao_restore_workaround()
772 mtspr(SPRN_PMC3, pmcs[2]); in pmao_restore_workaround()
773 mtspr(SPRN_PMC4, pmcs[3]); in pmao_restore_workaround()
774 mtspr(SPRN_PMC5, pmcs[4]); in pmao_restore_workaround()
775 mtspr(SPRN_PMC6, pmcs[5]); in pmao_restore_workaround()
864 u32 pmcs[MAX_HWEVENTS]; in perf_event_print_debug() local
881 pmcs[i] = read_pmc(i + 1); in perf_event_print_debug()
884 pmcs[i] = 0xdeadbeef; in perf_event_print_debug()
887 pmcs[0], pmcs[1], pmcs[2], pmcs[3]); in perf_event_print_debug()
891 pmcs[4], pmcs[5], pmcs[6], pmcs[7]); in perf_event_print_debug()
2316 cpuhw->pmcs[i] = read_pmc(i + 1); in __perf_event_interrupt()
2321 if (!pmc_overflow(cpuhw->pmcs[i])) in __perf_event_interrupt()
2336 record_and_restart(event, cpuhw->pmcs[i], regs); in __perf_event_interrupt()
2350 if (pmc_overflow_power7(cpuhw->pmcs[event->hw.idx - 1])) { in __perf_event_interrupt()
2354 cpuhw->pmcs[event->hw.idx - 1], in __perf_event_interrupt()
2372 memset(&cpuhw->pmcs, 0, sizeof(cpuhw->pmcs)); in __perf_event_interrupt()