Home
last modified time | relevance | path

Searched refs:mmcr2 (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmisc.h121 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc) in get_mmcr2_fcs() argument
126 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc) in get_mmcr2_fcp() argument
131 static inline int get_mmcr2_fcpc(u64 mmcr2, int pmc) in get_mmcr2_fcpc() argument
136 static inline int get_mmcr2_fcm1(u64 mmcr2, int pmc) in get_mmcr2_fcm1() argument
141 static inline int get_mmcr2_fcm0(u64 mmcr2, int pmc) in get_mmcr2_fcm0() argument
146 static inline int get_mmcr2_fcwait(u64 mmcr2, int pmc) in get_mmcr2_fcwait() argument
151 static inline int get_mmcr2_fch(u64 mmcr2, int pmc) in get_mmcr2_fch() argument
156 static inline int get_mmcr2_fcti(u64 mmcr2, int pmc) in get_mmcr2_fcti() argument
161 static inline int get_mmcr2_fcta(u64 mmcr2, int pmc) in get_mmcr2_fcta() argument
166 static inline int get_mmcr2_l2l3(u64 mmcr2, int pmc) in get_mmcr2_l2l3() argument
[all …]
/openbmc/linux/arch/powerpc/perf/
H A Dmpc7450-pmu.c268 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
307 mmcr2 = 0x80000000; in mpc7450_compute_mmcr()
327 mmcr->mmcr2 = mmcr2; in mpc7450_compute_mmcr()
334 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
H A Disa207-common.c562 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
576 mmcra = mmcr1 = mmcr2 = mmcr3 = 0; in isa207_compute_mmcr()
663 mmcr2 |= val << p10_L2L3_SEL_SHIFT; in isa207_compute_mmcr()
677 mmcr2 |= MMCR2_FCP(pmc); in isa207_compute_mmcr()
680 mmcr2 |= MMCR2_FCH(pmc); in isa207_compute_mmcr()
684 mmcr2 |= MMCR2_FCH(pmc); in isa207_compute_mmcr()
686 mmcr2 |= MMCR2_FCS(pmc); in isa207_compute_mmcr()
690 mmcr2 |= MMCR2_FCWAIT(pmc); in isa207_compute_mmcr()
727 mmcr->mmcr2 = mmcr2; in isa207_compute_mmcr()
H A Dcore-book3s.c639 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out()
683 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in()
1513 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_perf.c61 host_os_sprs->mmcr2 = mfspr(SPRN_MMCR2); in switch_pmu_to_guest()
202 mtspr(SPRN_MMCR2, host_os_sprs->mmcr2); in switch_pmu_to_host()
H A Dbook3s_hv.h18 unsigned long mmcr2; member
/openbmc/linux/arch/powerpc/include/asm/
H A Dswitch_to.h115 t->thread.mmcr2 = 0; in clear_task_ebb()
H A Dperf_event_server.h23 unsigned long mmcr2; member
H A Dprocessor.h255 unsigned long mmcr2; member
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-view.c409 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_get()
410 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get()
427 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_set()
428 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set()
448 &target->thread.mmcr2, 3 * sizeof(unsigned long), in pmu_set()
/openbmc/linux/tools/perf/arch/powerpc/util/
H A Dperf_regs.c68 SMPL_REG(mmcr2, PERF_REG_POWERPC_MMCR2),
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Didle.c599 u64 mmcr2; member
676 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop()
792 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()
/openbmc/qemu/include/hw/ppc/
H A Dspapr_nested.h480 uint64_t mmcr2; member
/openbmc/linux/arch/powerpc/kernel/
H A Dsysfs.c613 SYSFS_PMCSETUP(mmcr2, SPRN_MMCR2);
681 __ATTR(mmcr2, 0600, show_mmcr2, store_mmcr2),
/openbmc/qemu/hw/ppc/
H A Dspapr_nested.c208 save->mmcr2 = env->spr[SPR_POWER_MMCR2]; in nested_save_state()
307 env->spr[SPR_POWER_MMCR2] = load->mmcr2; in nested_load_state()
996 GUEST_STATE_ELEMENT_ENV_DW(GSB_VCPU_SPR_MMCR2, mmcr2),