Home | History | Annotate | Download | only in kern

Lines Matching defs:prof

520 #define	PC_TO_INDEX(pc, prof) \
521 ((int)(((u_quad_t)((pc) - (prof)->pr_off) * \
522 (u_quad_t)((prof)->pr_scale)) >> 16) & ~1)
542 struct uprof *prof;
550 prof = &p->p_stats->p_prof;
551 if (pc < prof->pr_off ||
552 (i = PC_TO_INDEX(pc, prof)) >= prof->pr_size)
558 prof->pr_addr = pc;
559 prof->pr_ticks++;
572 struct uprof *prof;
585 prof = &p->p_stats->p_prof;
588 if ((p->p_stflag & PST_PROFIL) == 0 || pc < prof->pr_off ||
589 (i = PC_TO_INDEX(pc, prof)) >= prof->pr_size) {
594 addr = prof->pr_base + i;