/kernel/linux/linux-5.10/arch/powerpc/oprofile/ |
D | op_model_power4.c | 105 mmcra_val = sys->mmcra; in power4_reg_setup() 172 unsigned long mmcra = mmcra_val; in power4_cpu_setup() local 187 mmcra |= MMCRA_SAMPLE_ENABLE; in power4_cpu_setup() 188 mtspr(SPRN_MMCRA, mmcra); in power4_cpu_setup() 280 unsigned long mmcra; in get_pc() local 287 mmcra = mfspr(SPRN_MMCRA); in get_pc() 289 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) { in get_pc() 290 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT); in get_pc() 297 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv)) in get_pc() 302 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr) in get_pc() [all …]
|
D | common.c | 129 oprofilefs_create_ulong(root, "mmcra", &sys.mmcra); in op_powerpc_create_files()
|
/kernel/linux/linux-5.10/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() 244 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local 245 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight() 246 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight() 251 mantissa = P10_MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight() [all …]
|
D | ppc970-pmu.c | 261 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 384 mmcra |= MMCRA_SAMPLE_ENABLE; in p970_compute_mmcr() 396 mmcra |= 0x2000; /* mark only one IOP per PPC instruction */ in p970_compute_mmcr() 401 mmcr->mmcra = mmcra; in p970_compute_mmcr()
|
D | core-book3s.c | 167 unsigned long mmcra = regs->dsisr; in perf_ip_adjust() local 169 if ((ppmu->flags & PPMU_HAS_SSLOT) && (mmcra & MMCRA_SAMPLE_ENABLE)) { in perf_ip_adjust() 170 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust() 188 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local 205 sdar_valid = mmcra & sdsync; in perf_get_data_addr() 208 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || sdar_valid) in perf_get_data_addr() 289 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs() local 290 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_read_regs() 293 regs->dsisr = mmcra; in perf_read_regs() 340 unsigned long mmcra = regs->dsisr; in siar_valid() local [all …]
|
D | power7-pmu.c | 251 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power7_compute_mmcr() local 299 mmcra |= MMCRA_SAMPLE_ENABLE; in power7_compute_mmcr() 310 mmcr->mmcra = mmcra; in power7_compute_mmcr()
|
D | power6-pmu.c | 179 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in p6_compute_mmcr() local 244 mmcra |= MMCRA_SAMPLE_ENABLE; in p6_compute_mmcr() 254 mmcr->mmcra = mmcra; in p6_compute_mmcr()
|
D | power5-pmu.c | 388 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power5_compute_mmcr() local 527 mmcra |= MMCRA_SAMPLE_ENABLE; in power5_compute_mmcr() 540 mmcr->mmcra = mmcra; in power5_compute_mmcr()
|
D | power5+-pmu.c | 457 unsigned long mmcra = 0; in power5p_compute_mmcr() local 582 mmcra |= MMCRA_SAMPLE_ENABLE; in power5p_compute_mmcr() 598 mmcr->mmcra = mmcra; in power5p_compute_mmcr()
|
D | mpc7450-pmu.c | 333 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | idle.c | 593 u64 mmcra; member 614 unsigned long mmcra = 0; in power9_idle_stop() local 672 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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | oprofile_impl.h | 30 unsigned long mmcra; member
|
D | perf_event_server.h | 24 unsigned long mmcra; member
|
D | kvm_host.h | 643 u64 mmcra; member
|
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/ |
D | perf_regs.c | 64 SMPL_REG(mmcra, PERF_REG_POWERPC_MMCRA),
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | sysfs.c | 615 SYSFS_PMCSETUP(mmcra, SPRN_MMCRA); 618 static DEVICE_ATTR(mmcra, 0600, show_mmcra, store_mmcra);
|
D | asm-offsets.c | 563 OFFSET(VCPU_MMCRA, kvm_vcpu, arch.mmcra); in main()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_hv.c | 1700 *val = get_reg_val(id, vcpu->arch.mmcra); in kvmppc_get_one_reg_hv() 1939 vcpu->arch.mmcra = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()
|