/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
A D | cycles_with_freeze_test.c | 39 val = mfspr(SPRN_MMCR0); in ebb_callee() 40 trace_log_reg(ebb_state.trace, SPRN_MMCR0, val); in ebb_callee() 84 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in cycles_with_freeze() 90 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in cycles_with_freeze() 92 val = mfspr(SPRN_MMCR0); in cycles_with_freeze()
|
A D | ebb.c | 39 val = mfspr(SPRN_MMCR0); in reset_ebb_with_clear_mask() 40 mtspr(SPRN_MMCR0, (val & ~mmcr0_clear_mask) | MMCR0_PMAE); in reset_ebb_with_clear_mask() 61 val = mfspr(SPRN_MMCR0); in ebb_check_mmcr0() 113 val = mfspr(SPRN_MMCR0); in standard_ebb_callee() 114 trace_log_reg(ebb_state.trace, SPRN_MMCR0, val); in standard_ebb_callee() 221 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state() 296 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in ebb_freeze_pmcs() 303 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in ebb_unfreeze_pmcs() 393 val |= mfspr(SPRN_MMCR0); in ebb_child()
|
A D | instruction_count_test.c | 35 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in do_count_loop() 41 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) | MMCR0_FC); in do_count_loop() 128 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in instruction_count()
|
A D | pmae_handling_test.c | 44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee() 49 after = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
|
A D | back_to_back_ebbs_test.c | 58 val = mfspr(SPRN_MMCR0); in ebb_callee() 59 trace_log_reg(ebb_state.trace, SPRN_MMCR0, val); in ebb_callee()
|
A D | no_handler_test.c | 48 val = mfspr(SPRN_MMCR0); in no_handler_test()
|
A D | fork_cleanup_test.c | 59 mtspr(SPRN_MMCR0, MMCR0_FC); in fork_cleanup()
|
/linux/arch/powerpc/kernel/ |
A D | pmc.c | 30 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~(MMCR0_PMXE|MMCR0_PMAO)); in dummy_perf() 32 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_PMXE); in dummy_perf()
|
A D | cpu_setup_power.c | 112 mtspr(SPRN_MMCR0, 0); in init_PMU() 126 mtspr(SPRN_MMCR0, MMCR0_PMCCEXT); in init_PMU_ISA31()
|
A D | dt_cpu_ftrs.c | 354 mtspr(SPRN_MMCR0, 0); in init_pmu_power8() 393 mtspr(SPRN_MMCR0, 0); in init_pmu_power9() 429 mtspr(SPRN_MMCR0, MMCR0_PMCCEXT); in init_pmu_power10()
|
A D | sysfs.c | 597 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
|
/linux/arch/powerpc/kvm/ |
A D | book3s_hv_interrupts.S | 118 mfspr r7, SPRN_MMCR0 /* save MMCR0 */ 119 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable interrupts */
|
A D | book3s_hv_rmhandlers.S | 2789 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */ 2840 mtspr SPRN_MMCR0, r3 2895 mtspr SPRN_MMCR0, r3 2934 mfspr r4, SPRN_MMCR0 /* save MMCR0 */ 2935 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */ 3003 mtspr SPRN_MMCR0, r3
|
A D | book3s_emulate.c | 835 case SPRN_MMCR0: in kvmppc_core_emulate_mtspr_pr() 1001 case SPRN_MMCR0: in kvmppc_core_emulate_mfspr_pr()
|
/linux/arch/powerpc/perf/ |
A D | core-book3s.c | 765 mtspr(SPRN_MMCR0, MMCR0_PMXE | MMCR0_PMCjCE | MMCR0_PMAO); in pmao_restore_workaround() 768 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMAO); in pmao_restore_workaround() 894 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCRA)); in perf_event_print_debug() 1229 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0() 1243 "i" (SPRN_MMCR0), in write_mmcr0() 1256 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0() 1285 val = mmcr0 = mfspr(SPRN_MMCR0); in power_pmu_disable() 1435 mtspr(SPRN_MMCR0, (cpuhw->mmcr.mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)) in power_pmu_enable()
|
A D | perf_regs.c | 81 return mfspr(SPRN_MMCR0); in get_ext_regs_value()
|
/linux/tools/testing/selftests/powerpc/include/ |
A D | reg.h | 24 #define SPRN_MMCR0 779 macro
|
/linux/arch/powerpc/platforms/powernv/ |
A D | idle.c | 659 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 673 sprs.mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 721 mtspr(SPRN_MMCR0, mmcr0); in power9_idle_stop() 790 mtspr(SPRN_MMCR0, sprs.mmcr0); in power9_idle_stop()
|
/linux/arch/powerpc/include/asm/ |
A D | reg.h | 853 #define SPRN_MMCR0 795 macro 1037 #define SPRN_MMCR0 952 /* Monitor Mode Control Register 0 */ macro
|
/linux/arch/powerpc/xmon/ |
A D | xmon.c | 2075 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()
|