Lines Matching refs:pmcs

61 	unsigned long pmcs[MAX_HWEVENTS];  member
159 return cpuhw->pmcs[idx]; in get_pmcs_ext_regs()
689 unsigned pmcs[6]; in pmao_restore_workaround() local
745 pmcs[0] = mfspr(SPRN_PMC1); in pmao_restore_workaround()
746 pmcs[1] = mfspr(SPRN_PMC2); in pmao_restore_workaround()
747 pmcs[2] = mfspr(SPRN_PMC3); in pmao_restore_workaround()
748 pmcs[3] = mfspr(SPRN_PMC4); in pmao_restore_workaround()
749 pmcs[4] = mfspr(SPRN_PMC5); in pmao_restore_workaround()
750 pmcs[5] = mfspr(SPRN_PMC6); in pmao_restore_workaround()
764 mtspr(SPRN_PMC1, pmcs[0]); in pmao_restore_workaround()
765 mtspr(SPRN_PMC2, pmcs[1]); in pmao_restore_workaround()
766 mtspr(SPRN_PMC3, pmcs[2]); in pmao_restore_workaround()
767 mtspr(SPRN_PMC4, pmcs[3]); in pmao_restore_workaround()
768 mtspr(SPRN_PMC5, pmcs[4]); in pmao_restore_workaround()
769 mtspr(SPRN_PMC6, pmcs[5]); in pmao_restore_workaround()
899 u32 pmcs[MAX_HWEVENTS]; in perf_event_print_debug() local
916 pmcs[i] = read_pmc(i + 1); in perf_event_print_debug()
919 pmcs[i] = 0xdeadbeef; in perf_event_print_debug()
922 pmcs[0], pmcs[1], pmcs[2], pmcs[3]); in perf_event_print_debug()
926 pmcs[4], pmcs[5], pmcs[6], pmcs[7]); in perf_event_print_debug()
2404 cpuhw->pmcs[i] = read_pmc(i + 1); in __perf_event_interrupt()
2409 if (!pmc_overflow(cpuhw->pmcs[i])) in __perf_event_interrupt()
2424 record_and_restart(event, cpuhw->pmcs[i], regs); in __perf_event_interrupt()
2446 if (pmc_overflow_power7(cpuhw->pmcs[event->hw.idx - 1])) { in __perf_event_interrupt()
2450 cpuhw->pmcs[event->hw.idx - 1], in __perf_event_interrupt()
2475 memset(&cpuhw->pmcs, 0, sizeof(cpuhw->pmcs)); in __perf_event_interrupt()