/linux-6.12.1/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
D | misc.h | 180 static inline int get_mmcra_thd_cmp(u64 mmcra, int pmc) in get_mmcra_thd_cmp() argument 183 return ((mmcra >> 45) & 0x7ff); in get_mmcra_thd_cmp() 184 return ((mmcra >> 45) & 0x3ff); in get_mmcra_thd_cmp() 187 static inline int get_mmcra_sm(u64 mmcra, int pmc) in get_mmcra_sm() argument 189 return ((mmcra >> 42) & 0x3); in get_mmcra_sm() 192 static inline u64 get_mmcra_bhrb_disable(u64 mmcra, int pmc) in get_mmcra_bhrb_disable() argument 195 return mmcra & BHRB_DISABLE; in get_mmcra_bhrb_disable() 199 static inline int get_mmcra_ifm(u64 mmcra, int pmc) in get_mmcra_ifm() argument 201 return ((mmcra >> 30) & 0x3); in get_mmcra_ifm() 204 static inline int get_mmcra_thd_sel(u64 mmcra, int pmc) in get_mmcra_thd_sel() argument [all …]
|
/linux-6.12.1/arch/powerpc/perf/ |
D | isa207-common.c | 82 static void mmcra_sdar_mode(u64 event, unsigned long *mmcra) in mmcra_sdar_mode() argument 101 if (is_event_marked(event) || (*mmcra & MMCRA_SAMPLE_ENABLE)) in mmcra_sdar_mode() 102 *mmcra &= MMCRA_SDAR_MODE_NO_UPDATES; in mmcra_sdar_mode() 104 *mmcra |= sdar_mod_val(event) << MMCRA_SDAR_MODE_SHIFT; in mmcra_sdar_mode() 106 *mmcra |= MMCRA_SDAR_MODE_DCACHE; in mmcra_sdar_mode() 108 *mmcra |= MMCRA_SDAR_MODE_TLB; in mmcra_sdar_mode() 332 u64 mmcra; in isa207_get_mem_data_src() local 342 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_data_src() 344 op_type = (mmcra >> MMCRA_SAMP_ELIG_SHIFT) & MMCRA_SAMP_ELIG_MASK; in isa207_get_mem_data_src() 365 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local [all …]
|
D | ppc970-pmu.c | 262 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 385 mmcra |= MMCRA_SAMPLE_ENABLE; in p970_compute_mmcr() 397 mmcra |= 0x2000; /* mark only one IOP per PPC instruction */ in p970_compute_mmcr() 402 mmcr->mmcra = mmcra; in p970_compute_mmcr()
|
D | core-book3s.c | 183 unsigned long mmcra = regs->dsisr; in perf_ip_adjust() local 185 if ((ppmu->flags & PPMU_HAS_SSLOT) && (mmcra & MMCRA_SAMPLE_ENABLE)) { in perf_ip_adjust() 186 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust() 204 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local 221 sdar_valid = mmcra & sdsync; in perf_get_data_addr() 224 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || sdar_valid) in perf_get_data_addr() 319 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs() local 320 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_read_regs() 323 regs->dsisr = mmcra; in perf_read_regs() 379 unsigned long mmcra = regs->dsisr; in siar_valid() local [all …]
|
D | power7-pmu.c | 252 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power7_compute_mmcr() local 300 mmcra |= MMCRA_SAMPLE_ENABLE; in power7_compute_mmcr() 311 mmcr->mmcra = mmcra; in power7_compute_mmcr()
|
D | power6-pmu.c | 180 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in p6_compute_mmcr() local 245 mmcra |= MMCRA_SAMPLE_ENABLE; in p6_compute_mmcr() 255 mmcr->mmcra = mmcra; in p6_compute_mmcr()
|
D | power5-pmu.c | 389 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power5_compute_mmcr() local 528 mmcra |= MMCRA_SAMPLE_ENABLE; in power5_compute_mmcr() 541 mmcr->mmcra = mmcra; in power5_compute_mmcr()
|
D | power5+-pmu.c | 458 unsigned long mmcra = 0; in power5p_compute_mmcr() local 583 mmcra |= MMCRA_SAMPLE_ENABLE; in power5p_compute_mmcr() 599 mmcr->mmcra = mmcra; in power5p_compute_mmcr()
|
D | mpc7450-pmu.c | 334 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
|
/linux-6.12.1/arch/powerpc/kvm/ |
D | book3s_hv_p9_perf.c | 8 static void freeze_pmu(unsigned long mmcr0, unsigned long mmcra) in freeze_pmu() argument 12 if (mmcra & MMCRA_SAMPLE_ENABLE) in freeze_pmu() 17 if (!(mmcra & MMCRA_BHRB_DISABLE)) in freeze_pmu() 24 mmcra = 0; in freeze_pmu() 27 mmcra = MMCRA_BHRB_DISABLE; in freeze_pmu() 31 mtspr(SPRN_MMCRA, mmcra); in freeze_pmu() 50 host_os_sprs->mmcra = mfspr(SPRN_MMCRA); in switch_pmu_to_guest() 52 freeze_pmu(host_os_sprs->mmcr0, host_os_sprs->mmcra); in switch_pmu_to_guest() 107 mtspr(SPRN_MMCRA, vcpu->arch.mmcra); in switch_pmu_to_guest() 138 vcpu->arch.mmcra = mfspr(SPRN_MMCRA); in switch_pmu_to_host() [all …]
|
D | book3s_hv.h | 22 unsigned long mmcra; member 104 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(mmcra, 64, KVMPPC_GSID_MMCRA)
|
D | book3s_hv_nestedv2.c | 158 rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.mmcra); in gs_msg_ops_vcpu_fill_info() 419 vcpu->arch.mmcra = kvmppc_gse_get_u64(gse); in gs_msg_ops_vcpu_refresh_info()
|
/linux-6.12.1/arch/powerpc/platforms/powernv/ |
D | idle.c | 596 u64 mmcra; member 617 unsigned long mmcra = 0; in power9_idle_stop() local 673 sprs.mmcra = mfspr(SPRN_MMCRA); in power9_idle_stop() 728 mmcra = mfspr(SPRN_MMCRA); in power9_idle_stop() 729 mmcra |= PPC_BIT(60); in power9_idle_stop() 730 mtspr(SPRN_MMCRA, mmcra); in power9_idle_stop() 731 mmcra &= ~PPC_BIT(60); in power9_idle_stop() 732 mtspr(SPRN_MMCRA, mmcra); in power9_idle_stop() 789 mtspr(SPRN_MMCRA, sprs.mmcra); in power9_idle_stop()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | perf_event_server.h | 24 unsigned long mmcra; member
|
D | kvm_host.h | 663 u64 mmcra; member
|
/linux-6.12.1/tools/perf/arch/powerpc/util/ |
D | perf_regs.c | 65 SMPL_REG(mmcra, PERF_REG_POWERPC_MMCRA),
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | sysfs.c | 620 SYSFS_PMCSETUP(mmcra, SPRN_MMCRA); 623 static DEVICE_ATTR(mmcra, 0600, show_mmcra, store_mmcra);
|
D | asm-offsets.c | 458 OFFSET(VCPU_MMCRA, kvm_vcpu, arch.mmcra); in main()
|