/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.c | 39 val = mfspr(SPRN_MMCR0); in reset_ebb_with_clear_mask() 61 val = mfspr(SPRN_MMCR0); in ebb_check_mmcr0() 104 val = mfspr(SPRN_BESCR); in standard_ebb_callee() 113 val = mfspr(SPRN_MMCR0); in standard_ebb_callee() 221 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state() 222 bescr = mfspr(SPRN_BESCR); in dump_ebb_hw_state() 236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state() 237 mfspr(SPRN_EBBHR), bescr, decode_bescr(bescr), in dump_ebb_hw_state() 238 mfspr(SPRN_PMC1), mfspr(SPRN_PMC2), mfspr(SPRN_PMC3), in dump_ebb_hw_state() 239 mfspr(SPRN_PMC4), mfspr(SPRN_PMC5), mfspr(SPRN_PMC6), in dump_ebb_hw_state() [all …]
|
D | cycles_with_freeze_test.c | 30 val = mfspr(SPRN_BESCR); in ebb_callee() 39 val = mfspr(SPRN_MMCR0); 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 | close_clears_pmcc_test.c | 51 mfspr(SPRN_EBBHR); in close_clears_pmcc() 52 mfspr(SPRN_EBBRR); in close_clears_pmcc() 53 mfspr(SPRN_BESCR); in close_clears_pmcc()
|
D | back_to_back_ebbs_test.c | 31 val = mfspr(SPRN_BESCR); in ebb_callee() 52 siar = mfspr(SPRN_SIAR); in ebb_callee() 55 val = mfspr(SPRN_PMC1); in ebb_callee() 58 val = mfspr(SPRN_MMCR0); in ebb_callee()
|
D | fork_cleanup_test.c | 29 FAIL_IF(mfspr(SPRN_BESCR) != 0); in child() 30 FAIL_IF(mfspr(SPRN_EBBHR) != 0); in child() 31 FAIL_IF(mfspr(SPRN_EBBRR) != 0); in child()
|
D | pmae_handling_test.c | 35 val = mfspr(SPRN_BESCR); in syscall_ebb_callee() 44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee() 49 after = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
|
D | pmc56_overflow_test.c | 23 val = mfspr(SPRN_BESCR); in ebb_callee() 32 val = mfspr(SPRN_PMC5); in ebb_callee() 38 val = mfspr(SPRN_PMC6); in ebb_callee()
|
D | reg_access_test.c | 24 val = mfspr(SPRN_BESCR); in reg_access() 30 val = mfspr(SPRN_EBBHR); in reg_access()
|
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() 94 val = mfspr(SPRN_BESCR); in pmc4_ebb_callee() 128 mtspr(SPRN_MMCR0, mfspr(SPRN_MMCR0) & ~MMCR0_FC); in instruction_count()
|
D | no_handler_test.c | 34 val = mfspr(SPRN_EBBHR); in no_handler_test() 48 val = mfspr(SPRN_MMCR0); in no_handler_test()
|
D | cycles_with_mmcr2_test.c | 63 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
|
/tools/testing/selftests/powerpc/dexcr/ |
D | dexcr.c | 38 mfspr(SPRN_DEXCR_RO); in dexcr_exists() 72 return mfspr(SPRN_DEXCR_RO); in get_dexcr() 74 return mfspr(SPRN_HDEXCR_RO); in get_dexcr() 76 return mfspr(SPRN_DEXCR_RO) | mfspr(SPRN_HDEXCR_RO); in get_dexcr()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-tmspr.c | 56 tfhar_rd = mfspr(SPRN_TFHAR); in tfiar_tfhar() 57 tfiar_rd = mfspr(SPRN_TFIAR); in tfiar_tfhar() 83 result = mfspr(SPRN_TEXASR); in texasr()
|
/tools/perf/arch/powerpc/util/ |
D | header.c | 20 pvr = mfspr(SPRN_PVR); in get_cpuid() 37 if (asprintf(&bufp, "%.8lx", mfspr(SPRN_PVR)) < 0) in get_cpuid_str()
|
D | utils_header.h | 7 #define mfspr(rn) ({unsigned long rval; \ macro
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr.h | 45 return mfspr(SPRN_DSCR_PRIV); in get_dscr() 56 return mfspr(SPRN_DSCR); in get_dscr_usr()
|
/tools/testing/selftests/powerpc/pmu/event_code_tests/ |
D | reserved_bits_mmcra_sample_elig_mode_test.c | 62 if (PVR_VER(mfspr(SPRN_PVR)) == POWER10) { in reserved_bits_mmcra_sample_elig_mode() 65 } else if (PVR_VER(mfspr(SPRN_PVR)) == POWER9) { in reserved_bits_mmcra_sample_elig_mode()
|
D | generic_events_valid_test.c | 34 if (PVR_VER(mfspr(SPRN_PVR)) == POWER10) { in generic_events_valid_test() 75 } else if (PVR_VER(mfspr(SPRN_PVR)) == POWER9) { in generic_events_valid_test()
|
D | blacklisted_events_test.c | 82 pvr_min = PVR_MIN(mfspr(SPRN_PVR)); in check_for_power9_version()
|
D | event_alternatives_tests_p10.c | 39 SKIP_IF(PVR_VER(mfspr(SPRN_PVR)) != POWER10); in event_alternatives_tests_p10()
|
/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-tar.c | 34 reg[0] = mfspr(SPRN_TAR); in tar() 35 reg[1] = mfspr(SPRN_PPR); in tar() 36 reg[2] = mfspr(SPRN_DSCR); in tar()
|
D | ptrace-tm-spd-tar.c | 84 regs[0] = mfspr(SPRN_TAR); in tm_spd_tar() 85 regs[1] = mfspr(SPRN_PPR); in tm_spd_tar() 86 regs[2] = mfspr(SPRN_DSCR); in tm_spd_tar()
|
D | ptrace-tm-tar.c | 73 regs[0] = mfspr(SPRN_TAR); in tm_tar() 74 regs[1] = mfspr(SPRN_PPR); in tm_tar() 75 regs[2] = mfspr(SPRN_DSCR); in tm_tar()
|
D | ptrace-pkey.c | 138 reg = mfspr(SPRN_AMR); in child() 154 reg = mfspr(SPRN_AMR); in child() 171 reg = mfspr(SPRN_AMR); in child()
|
/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
D | bhrb_filter_map_test.c | 86 if (PVR_VER(mfspr(SPRN_PVR)) == POWER10) { in bhrb_filter_map_test()
|