/Linux-v5.4/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()
|
/Linux-v5.4/arch/powerpc/perf/ |
D | isa207-common.c | 72 static void mmcra_sdar_mode(u64 event, unsigned long *mmcra) in mmcra_sdar_mode() argument 91 if (is_event_marked(event) || (*mmcra & MMCRA_SAMPLE_ENABLE)) in mmcra_sdar_mode() 92 *mmcra &= MMCRA_SDAR_MODE_NO_UPDATES; in mmcra_sdar_mode() 94 *mmcra |= p9_SDAR_MODE(event) << MMCRA_SDAR_MODE_SHIFT; in mmcra_sdar_mode() 96 *mmcra |= MMCRA_SDAR_MODE_DCACHE; in mmcra_sdar_mode() 98 *mmcra |= MMCRA_SDAR_MODE_TLB; in mmcra_sdar_mode() 230 u64 mmcra = mfspr(SPRN_MMCRA); in isa207_get_mem_weight() local 231 u64 exp = MMCRA_THR_CTR_EXP(mmcra); in isa207_get_mem_weight() 232 u64 mantissa = MMCRA_THR_CTR_MANT(mmcra); in isa207_get_mem_weight() 369 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local [all …]
|
D | ppc970-pmu.c | 258 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 381 mmcra |= MMCRA_SAMPLE_ENABLE; in p970_compute_mmcr() 393 mmcra |= 0x2000; /* mark only one IOP per PPC instruction */ in p970_compute_mmcr() 398 mmcr[2] = mmcra; in p970_compute_mmcr()
|
D | power6-pmu.c | 177 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in p6_compute_mmcr() local 242 mmcra |= MMCRA_SAMPLE_ENABLE; in p6_compute_mmcr() 252 mmcr[2] = mmcra; in p6_compute_mmcr()
|
D | power7-pmu.c | 248 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power7_compute_mmcr() local 296 mmcra |= MMCRA_SAMPLE_ENABLE; in power7_compute_mmcr() 307 mmcr[2] = mmcra; in power7_compute_mmcr()
|
D | core-book3s.c | 163 unsigned long mmcra = regs->dsisr; in perf_ip_adjust() local 165 if ((ppmu->flags & PPMU_HAS_SSLOT) && (mmcra & MMCRA_SAMPLE_ENABLE)) { in perf_ip_adjust() 166 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust() 184 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local 201 sdar_valid = mmcra & sdsync; in perf_get_data_addr() 204 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || sdar_valid) in perf_get_data_addr() 286 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs() local 287 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_read_regs() 290 regs->dsisr = mmcra; in perf_read_regs() 346 unsigned long mmcra = regs->dsisr; in siar_valid() local [all …]
|
D | power5-pmu.c | 385 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power5_compute_mmcr() local 524 mmcra |= MMCRA_SAMPLE_ENABLE; in power5_compute_mmcr() 537 mmcr[2] = mmcra; in power5_compute_mmcr()
|
D | power5+-pmu.c | 454 unsigned long mmcra = 0; in power5p_compute_mmcr() local 579 mmcra |= MMCRA_SAMPLE_ENABLE; in power5p_compute_mmcr() 595 mmcr[2] = mmcra; in power5p_compute_mmcr()
|
/Linux-v5.4/arch/powerpc/platforms/powernv/ |
D | idle.c | 593 u64 mmcra; member 670 sprs.mmcra = mfspr(SPRN_MMCRA); in power9_idle_stop() 703 unsigned long mmcra; in power9_idle_stop() local 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-v5.4/arch/powerpc/include/asm/ |
D | oprofile_impl.h | 30 unsigned long mmcra; member
|
/Linux-v5.4/tools/perf/arch/powerpc/util/ |
D | perf_regs.c | 57 SMPL_REG(mmcra, PERF_REG_POWERPC_MMCRA),
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | sysfs.c | 487 SYSFS_PMCSETUP(mmcra, SPRN_MMCRA); 498 static DEVICE_ATTR(mmcra, 0600, show_mmcra, store_mmcra);
|