Lines Matching defs:mmcra
3 * Added mmcra[slot] support:
44 * mmcr1 and mmcra values passed from the user in the
49 mmcra_val = sys->mmcra;
99 unsigned long mmcra = mmcra_val;
114 mmcra |= MMCRA_SAMPLE_ENABLE;
115 mtspr(SPRN_MMCRA, mmcra);
121 dbg("setup on cpu %d, mmcra %lx\n", smp_processor_id(),
200 * mmcra[slot] bits represent the slot number of a sampled instruction
207 unsigned long mmcra;
214 mmcra = mfspr(SPRN_MMCRA);
216 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) {
217 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT);
224 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv))
229 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr)
251 static int get_kernel(unsigned long pc, unsigned long mmcra)
258 is_kernel = ((mmcra & cur_cpu_spec->oprofile_mmcra_sipr) == 0);
272 unsigned long mmcra;
274 mmcra = mfspr(SPRN_MMCRA);
277 is_kernel = get_kernel(pc, mmcra);
306 mmcra &= ~cur_cpu_spec->oprofile_mmcra_clear;
307 mtspr(SPRN_MMCRA, mmcra);