Lines Matching defs:mmcra
4 * Added mmcra[slot] support:
100 * mmcr1 and mmcra values passed from the user in the
105 mmcra_val = sys->mmcra;
172 unsigned long mmcra = mmcra_val;
187 mmcra |= MMCRA_SAMPLE_ENABLE;
188 mtspr(SPRN_MMCRA, mmcra);
194 dbg("setup on cpu %d, mmcra %lx\n", smp_processor_id(),
273 * mmcra[slot] bits represent the slot number of a sampled instruction
280 unsigned long mmcra;
287 mmcra = mfspr(SPRN_MMCRA);
289 if (use_slot_nums && (mmcra & MMCRA_SAMPLE_ENABLE)) {
290 slot = ((mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT);
297 (mmcra & cur_cpu_spec->oprofile_mmcra_sihv))
302 if (mmcra & cur_cpu_spec->oprofile_mmcra_sipr)
324 static int get_kernel(unsigned long pc, unsigned long mmcra)
331 is_kernel = ((mmcra & cur_cpu_spec->oprofile_mmcra_sipr) == 0);
367 unsigned long mmcra;
370 mmcra = mfspr(SPRN_MMCRA);
373 is_kernel = get_kernel(pc, mmcra);
379 if ((mmcra & MMCRA_SIAR_VALID_MASK) == MMCRA_SIAR_VALID_MASK)
420 mmcra &= ~cur_cpu_spec->oprofile_mmcra_clear;
421 mtspr(SPRN_MMCRA, mmcra);