/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
A D | misc.h | 63 static inline int get_mmcr0_fc56(u64 mmcr0, int pmc) in get_mmcr0_fc56() argument 65 return (mmcr0 & MMCR0_FC56); in get_mmcr0_fc56() 70 return (mmcr0 & MMCR0_PMCCEXT); in get_mmcr0_pmccext() 73 static inline int get_mmcr0_pmao(u64 mmcr0, int pmc) in get_mmcr0_pmao() argument 75 return ((mmcr0 >> 7) & 0x1); in get_mmcr0_pmao() 80 return ((mmcr0 >> 8) & 0x1); in get_mmcr0_cc56run() 83 static inline int get_mmcr0_pmcjce(u64 mmcr0, int pmc) in get_mmcr0_pmcjce() argument 85 return ((mmcr0 >> 14) & 0x1); in get_mmcr0_pmcjce() 90 return ((mmcr0 >> 15) & 0x1); in get_mmcr0_pmc1ce() 93 static inline int get_mmcr0_pmae(u64 mmcr0, int pmc) in get_mmcr0_pmae() argument [all …]
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | book3s_hv_p9_perf.c | 8 static void freeze_pmu(unsigned long mmcr0, unsigned long mmcra) in freeze_pmu() argument 10 if (!(mmcr0 & MMCR0_FC)) in freeze_pmu() 15 if (!(mmcr0 & MMCR0_PMCCEXT)) in freeze_pmu() 23 mmcr0 = MMCR0_FC; in freeze_pmu() 26 mmcr0 |= MMCR0_PMCCEXT; in freeze_pmu() 30 mtspr(SPRN_MMCR0, mmcr0); in freeze_pmu() 49 host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0); in switch_pmu_to_guest() 52 freeze_pmu(host_os_sprs->mmcr0, host_os_sprs->mmcra); in switch_pmu_to_guest() 215 mtspr(SPRN_MMCR0, host_os_sprs->mmcr0); in switch_pmu_to_host()
|
A D | book3s_hv.h | 16 unsigned long mmcr0; member
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A D | mpc7450-pmu.c | 268 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local 305 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr() 312 mmcr0 |= ev; in mpc7450_compute_mmcr() 320 mmcr0 |= MMCR0_PMC1CE; in mpc7450_compute_mmcr() 322 mmcr0 |= MMCR0_PMCnCE; in mpc7450_compute_mmcr() 325 mmcr->mmcr0 = mmcr0; in mpc7450_compute_mmcr() 345 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
|
A D | core-book3s.c | 130 return cpuhw->mmcr.mmcr0; in ebb_switch_in() 632 if (!(mmcr0 & MMCR0_EBE)) in ebb_switch_out() 638 current->thread.mmcr0 = mmcr0 & MMCR0_USER_MASK; in ebb_switch_out() 649 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; in ebb_switch_in() local 662 mmcr0 |= current->thread.mmcr0; in ebb_switch_in() 670 mmcr0 &= ~MMCR0_PMXE; in ebb_switch_in() 691 return mmcr0; in ebb_switch_in() 1271 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0() 1288 if (mmcr0 & MMCR0_FC) in write_mmcr0() 1394 ebb_switch_out(mmcr0); in power_pmu_disable() [all …]
|
A D | ppc970-pmu.c | 262 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 388 mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); in p970_compute_mmcr() 393 mmcr0 |= MMCR0_PMC1CE; in p970_compute_mmcr() 395 mmcr0 |= MMCR0_PMCjCE; in p970_compute_mmcr() 400 mmcr->mmcr0 = mmcr0; in p970_compute_mmcr() 415 mmcr->mmcr0 = (mmcr->mmcr0 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
|
A D | power7-pmu.c | 305 mmcr->mmcr0 = 0; in power7_compute_mmcr() 307 mmcr->mmcr0 = MMCR0_PMC1CE; in power7_compute_mmcr() 309 mmcr->mmcr0 |= MMCR0_PMCjCE; in power7_compute_mmcr()
|
A D | power6-pmu.c | 249 mmcr->mmcr0 = 0; in p6_compute_mmcr() 251 mmcr->mmcr0 = MMCR0_PMC1CE; in p6_compute_mmcr() 253 mmcr->mmcr0 |= MMCR0_PMCjCE; in p6_compute_mmcr()
|
A D | isa207-common.c | 704 mmcr->mmcr0 = 0; in isa207_compute_mmcr() 708 mmcr->mmcr0 = MMCR0_PMC1CE; in isa207_compute_mmcr() 711 mmcr->mmcr0 |= MMCR0_PMCjCE; in isa207_compute_mmcr() 715 mmcr->mmcr0 |= MMCR0_FC56; in isa207_compute_mmcr() 723 mmcr->mmcr0 |= MMCR0_PMCCEXT; in isa207_compute_mmcr()
|
A D | power5-pmu.c | 535 mmcr->mmcr0 = 0; in power5_compute_mmcr() 537 mmcr->mmcr0 = MMCR0_PMC1CE; in power5_compute_mmcr() 539 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5_compute_mmcr()
|
A D | power5+-pmu.c | 593 mmcr->mmcr0 = 0; in power5p_compute_mmcr() 595 mmcr->mmcr0 = MMCR0_PMC1CE; in power5p_compute_mmcr() 597 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5p_compute_mmcr()
|
A D | generic-compat-pmu.c | 300 mmcr->mmcr0 |= MMCR0_C56RUN; in generic_compute_mmcr()
|
A D | power10-pmu.c | 576 mmcr->mmcr0 |= MMCR0_C56RUN; in power10_compute_mmcr()
|
/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/ebb/ |
A D | ebb.c | 219 u32 mmcr0; in dump_ebb_hw_state() local 221 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state() 236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
|
/linux-6.3-rc2/arch/powerpc/platforms/powernv/ |
A D | idle.c | 595 u32 mmcr0; member 614 unsigned long mmcr0 = 0; in power9_idle_stop() local 658 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 672 sprs.mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 719 mtspr(SPRN_MMCR0, mmcr0); in power9_idle_stop() 788 mtspr(SPRN_MMCR0, sprs.mmcr0); in power9_idle_stop()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | switch_to.h | 116 t->thread.mmcr0 = 0; in clear_task_ebb()
|
A D | perf_event_server.h | 21 unsigned long mmcr0; member
|
A D | processor.h | 261 unsigned mmcr0; member
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | sysfs.c | 597 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0); 667 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), 674 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), 698 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
|
/linux-6.3-rc2/tools/perf/arch/powerpc/util/ |
A D | perf_regs.c | 65 SMPL_REG(mmcr0, PERF_REG_POWERPC_MMCR0),
|
/linux-6.3-rc2/arch/powerpc/kernel/ptrace/ |
A D | ptrace-view.c | 404 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get() 422 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set() 447 &target->thread.mmcr0, 4 * sizeof(unsigned long), in pmu_set()
|