/linux-6.6.21/tools/testing/selftests/powerpc/pmu/ebb/ |
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()
|
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()
|
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()
|
D | pmae_handling_test.c | 44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee() 49 after = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
|
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()
|
D | no_handler_test.c | 48 val = mfspr(SPRN_MMCR0); in no_handler_test()
|
D | fork_cleanup_test.c | 59 mtspr(SPRN_MMCR0, MMCR0_FC); in fork_cleanup()
|
/linux-6.6.21/arch/powerpc/kernel/ |
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()
|
D | cpu_setup_power.c | 112 mtspr(SPRN_MMCR0, MMCR0_FC); in init_PMU() 126 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMCCEXT); in init_PMU_ISA31()
|
D | dt_cpu_ftrs.c | 361 mtspr(SPRN_MMCR0, MMCR0_FC); in init_pmu_power8() 399 mtspr(SPRN_MMCR0, MMCR0_FC); in init_pmu_power9() 434 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMCCEXT); in init_pmu_power10()
|
D | sysfs.c | 602 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
|
/linux-6.6.21/arch/powerpc/kvm/ |
D | book3s_hv_p9_perf.c | 30 mtspr(SPRN_MMCR0, mmcr0); in freeze_pmu() 49 host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0); in switch_pmu_to_guest() 108 mtspr(SPRN_MMCR0, vcpu->arch.mmcr[0]); in switch_pmu_to_guest() 137 vcpu->arch.mmcr[0] = mfspr(SPRN_MMCR0); in switch_pmu_to_host() 166 freeze_pmu(mfspr(SPRN_MMCR0), mfspr(SPRN_MMCRA)); in switch_pmu_to_host() 215 mtspr(SPRN_MMCR0, host_os_sprs->mmcr0); in switch_pmu_to_host()
|
D | book3s_hv_interrupts.S | 122 mfspr r7, SPRN_MMCR0 /* save MMCR0 */ 123 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable interrupts */
|
D | book3s_emulate.c | 835 case SPRN_MMCR0: in kvmppc_core_emulate_mtspr_pr() 1001 case SPRN_MMCR0: in kvmppc_core_emulate_mfspr_pr()
|
D | book3s_hv_rmhandlers.S | 2777 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */ 2818 mtspr SPRN_MMCR0, r3 2867 mtspr SPRN_MMCR0, r3 2908 mfspr r4, SPRN_MMCR0 /* save MMCR0 */ 2909 mtspr SPRN_MMCR0, r3 /* freeze all counters, disable ints */ 2968 mtspr SPRN_MMCR0, r3
|
/linux-6.6.21/arch/powerpc/perf/ |
D | core-book3s.c | 766 mtspr(SPRN_MMCR0, MMCR0_PMXE | MMCR0_PMCjCE | MMCR0_PMAO); in pmao_restore_workaround() 769 mtspr(SPRN_MMCR0, MMCR0_FC | MMCR0_PMAO); in pmao_restore_workaround() 936 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCRA)); in perf_event_print_debug() 1271 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0() 1285 "i" (SPRN_MMCR0), in write_mmcr0() 1298 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0() 1329 val = mmcr0 = mfspr(SPRN_MMCR0); in power_pmu_disable() 1510 mtspr(SPRN_MMCR0, (cpuhw->mmcr.mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)) in power_pmu_enable() 2570 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in do_pmu_override()
|
D | perf_regs.c | 81 return mfspr(SPRN_MMCR0); in get_ext_regs_value()
|
/linux-6.6.21/tools/testing/selftests/powerpc/include/ |
D | reg.h | 26 #define SPRN_MMCR0 779 macro
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
D | idle.c | 660 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 674 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-6.6.21/arch/powerpc/include/asm/ |
D | reg.h | 861 #define SPRN_MMCR0 795 macro 1045 #define SPRN_MMCR0 952 /* Monitor Mode Control Register 0 */ macro
|
/linux-6.6.21/arch/powerpc/xmon/ |
D | xmon.c | 2070 mfspr(SPRN_MMCR0), mfspr(SPRN_MMCR1), mfspr(SPRN_MMCR2)); in dump_207_sprs()
|