Home
last modified time | relevance | path

Searched refs:mmcra (Results 1 – 11 of 11) sorted by relevance

/linux-3.4.99/arch/powerpc/oprofile/
Dop_model_power4.c48 mmcra_val = sys->mmcra; in power4_reg_setup()
98 unsigned long mmcra = mmcra_val; in power4_cpu_setup() local
113 mmcra |= MMCRA_SAMPLE_ENABLE; in power4_cpu_setup()
114 mtspr(SPRN_MMCRA, mmcra); in power4_cpu_setup()
206 unsigned long mmcra; in get_pc() local
213 mmcra = mfspr(SPRN_MMCRA); in get_pc()
215 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) { in get_pc()
216 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT); in get_pc()
223 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv)) in get_pc()
228 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr) in get_pc()
[all …]
Dcommon.c133 oprofilefs_create_ulong(sb, root, "mmcra", &sys.mmcra); in op_powerpc_create_files()
/linux-3.4.99/arch/powerpc/perf/
Dpower4-pmu.c361 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p4_compute_mmcr() local
500 mmcra |= MMCRA_SAMPLE_ENABLE; in p4_compute_mmcr()
508 mmcra |= (psel & 1) << MMCRA_PMC8SEL0_SH; in p4_compute_mmcr()
511 mmcra |= MMCRA_SAMPLE_ENABLE; in p4_compute_mmcr()
519 mmcra |= 0x2000; /* mark only one IOP per PPC instruction */ in p4_compute_mmcr()
524 mmcr[2] = mmcra; in p4_compute_mmcr()
Dcore-book3s.c91 unsigned long mmcra = regs->dsisr; in perf_ip_adjust() local
93 if ((mmcra & MMCRA_SAMPLE_ENABLE) && !(ppmu->flags & PPMU_ALT_SIPR)) { in perf_ip_adjust()
94 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust()
111 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local
115 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || (mmcra & sdsync)) in perf_get_data_addr()
130 unsigned long mmcra = regs->dsisr; in perf_get_misc_flags() local
143 !(mmcra & MMCRA_SAMPLE_ENABLE)) in perf_get_misc_flags()
165 if (mmcra & sipr) in perf_get_misc_flags()
167 if ((mmcra & sihv) && (freeze_events_kernel != MMCR0_FCHV)) in perf_get_misc_flags()
1348 unsigned long mmcra = regs->dsisr; in perf_instruction_pointer() local
[all …]
Dppc970-pmu.c262 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[2] = mmcra; in p970_compute_mmcr()
Dpower7-pmu.c229 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in power7_compute_mmcr() local
277 mmcra |= MMCRA_SAMPLE_ENABLE; in power7_compute_mmcr()
288 mmcr[2] = mmcra; in power7_compute_mmcr()
Dpower6-pmu.c181 unsigned long mmcra = MMCRA_SDAR_DCACHE_MISS | MMCRA_SDAR_ERAT_MISS; in p6_compute_mmcr() local
246 mmcra |= MMCRA_SAMPLE_ENABLE; in p6_compute_mmcr()
256 mmcr[2] = mmcra; in p6_compute_mmcr()
Dpower5-pmu.c389 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[2] = mmcra; in power5_compute_mmcr()
Dpower5+-pmu.c458 unsigned long mmcra = 0; in power5p_compute_mmcr() local
583 mmcra |= MMCRA_SAMPLE_ENABLE; in power5p_compute_mmcr()
599 mmcr[2] = mmcra; in power5p_compute_mmcr()
/linux-3.4.99/arch/powerpc/include/asm/
Doprofile_impl.h34 unsigned long mmcra; member
/linux-3.4.99/arch/powerpc/kernel/
Dsysfs.c177 SYSFS_PMCSETUP(mmcra, SPRN_MMCRA);
188 static DEVICE_ATTR(mmcra, 0600, show_mmcra, store_mmcra);