Home
last modified time | relevance | path

Searched refs:mfspr (Results 1 – 25 of 33) sorted by relevance

12

/tools/testing/selftests/powerpc/pmu/ebb/
Debb.c39 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 …]
Dcycles_with_freeze_test.c30 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()
Dclose_clears_pmcc_test.c51 mfspr(SPRN_EBBHR); in close_clears_pmcc()
52 mfspr(SPRN_EBBRR); in close_clears_pmcc()
53 mfspr(SPRN_BESCR); in close_clears_pmcc()
Dback_to_back_ebbs_test.c31 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()
Dfork_cleanup_test.c29 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()
Dpmae_handling_test.c35 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()
Dpmc56_overflow_test.c23 val = mfspr(SPRN_BESCR); in ebb_callee()
32 val = mfspr(SPRN_PMC5); in ebb_callee()
38 val = mfspr(SPRN_PMC6); in ebb_callee()
Dreg_access_test.c24 val = mfspr(SPRN_BESCR); in reg_access()
30 val = mfspr(SPRN_EBBHR); in reg_access()
Dinstruction_count_test.c35 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()
Dno_handler_test.c34 val = mfspr(SPRN_EBBHR); in no_handler_test()
48 val = mfspr(SPRN_MMCR0); in no_handler_test()
Dcycles_with_mmcr2_test.c63 val = mfspr(SPRN_MMCR2); in cycles_with_mmcr2()
/tools/testing/selftests/powerpc/dexcr/
Ddexcr.c38 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/
Dtm-tmspr.c56 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/
Dheader.c20 pvr = mfspr(SPRN_PVR); in get_cpuid()
37 if (asprintf(&bufp, "%.8lx", mfspr(SPRN_PVR)) < 0) in get_cpuid_str()
Dutils_header.h7 #define mfspr(rn) ({unsigned long rval; \ macro
/tools/testing/selftests/powerpc/dscr/
Ddscr.h45 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/
Dreserved_bits_mmcra_sample_elig_mode_test.c62 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()
Dgeneric_events_valid_test.c34 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()
Dblacklisted_events_test.c82 pvr_min = PVR_MIN(mfspr(SPRN_PVR)); in check_for_power9_version()
Devent_alternatives_tests_p10.c39 SKIP_IF(PVR_VER(mfspr(SPRN_PVR)) != POWER10); in event_alternatives_tests_p10()
/tools/testing/selftests/powerpc/ptrace/
Dptrace-tar.c34 reg[0] = mfspr(SPRN_TAR); in tar()
35 reg[1] = mfspr(SPRN_PPR); in tar()
36 reg[2] = mfspr(SPRN_DSCR); in tar()
Dptrace-tm-spd-tar.c84 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()
Dptrace-tm-tar.c73 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()
Dptrace-pkey.c138 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/
Dbhrb_filter_map_test.c86 if (PVR_VER(mfspr(SPRN_PVR)) == POWER10) { in bhrb_filter_map_test()

12