Lines Matching defs:prof
494 #define PC_TO_INDEX(pc, prof) \
495 ((int)(((u_quad_t)((pc) - (prof)->pr_off) * \
496 (u_quad_t)((prof)->pr_scale)) >> 16) & ~1)
523 struct user_uprof *prof;
526 for (prof = &p->p_stats->user_p_prof; prof; prof = prof->pr_next) {
527 off = PC_TO_INDEX(pc, prof);
528 cell = (prof->pr_base + off);
529 if (cell >= prof->pr_base &&
530 cell < (prof->pr_size + prof->pr_base)) {
543 struct uprof *prof;
546 for (prof = &p->p_stats->p_prof; prof; prof = prof->pr_next) {
547 off = PC_TO_INDEX(CAST_DOWN(uint, pc),prof);
548 cell = (short *)(prof->pr_base + off);
549 if (cell >= (short *)prof->pr_base &&
550 cell < (short*)(prof->pr_size + (int) prof->pr_base)) {