Home
last modified time | relevance | path

Searched refs:SPRN_PMC2 (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_perf.c55 host_os_sprs->pmc2 = mfspr(SPRN_PMC2); in switch_pmu_to_guest()
89 mtspr(SPRN_PMC2, vcpu->arch.pmc[1]); in switch_pmu_to_guest()
143 vcpu->arch.pmc[1] = mfspr(SPRN_PMC2); in switch_pmu_to_host()
196 mtspr(SPRN_PMC2, host_os_sprs->pmc2); in switch_pmu_to_host()
H A Dbook3s_hv_interrupts.S146 mfspr r5, SPRN_PMC2
H A Dbook3s_hv_rmhandlers.S2792 mtspr SPRN_PMC2, r5
2847 mtspr SPRN_PMC2, r4
2931 mfspr r4, SPRN_PMC2
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb.c238 mfspr(SPRN_PMC1), mfspr(SPRN_PMC2), mfspr(SPRN_PMC3), in dump_ebb_hw_state()
444 case 2: mtspr(SPRN_PMC2, value); break; in write_pmc()
456 case 2: return mfspr(SPRN_PMC2); in read_pmc()
H A Dpmc56_overflow_test.c69 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in pmc56_overflow()
H A Dmulti_counter_test.c59 mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); in multi_counter()
/openbmc/linux/tools/testing/selftests/powerpc/include/
H A Dreg.h42 #define SPRN_PMC2 772 macro
/openbmc/linux/arch/powerpc/perf/
H A Dcore-book3s.c753 pmcs[1] = mfspr(SPRN_PMC2); in pmao_restore_workaround()
772 mtspr(SPRN_PMC2, pmcs[1]); in pmao_restore_workaround()
823 val = mfspr(SPRN_PMC2); in read_pmc()
862 mtspr(SPRN_PMC2, val); in write_pmc()
/openbmc/linux/arch/powerpc/include/asm/
H A Dreg.h925 #define SPRN_PMC2 788 macro
1067 #define SPRN_PMC2 954 /* Performance Counter Register 2 */ macro
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dprocessor.h331 #define SPRN_PMC2 0x3BA /* Performance Counter Register 2 */ macro
/openbmc/linux/arch/powerpc/kernel/
H A Dsysfs.c605 SYSFS_PMCSETUP(pmc2, SPRN_PMC2);
/openbmc/linux/arch/powerpc/xmon/
H A Dxmon.c2072 mfspr(SPRN_PMC1), mfspr(SPRN_PMC2), in dump_207_sprs()