Lines Matching refs:mi

137 	mod_info_t	*mi;  in print_profile_data()  local
205 mi = NULL; in print_profile_data()
218 if (mi != profsym[i].module) { in print_profile_data()
220 mi = profsym[i].module; in print_profile_data()
269 for (mi = &modules; mi; mi = mi->next) in print_profile_data()
271 mi->id, mi->path); in print_profile_data()
357 mod_info_t *mi; in collect_profsyms() local
362 for (mi = &modules; mi; mi = mi->next) in collect_profsyms()
363 total_funcs += mi->nfuncs; in collect_profsyms()
373 for (mi = &modules; mi; mi = mi->next) { in collect_profsyms()
374 nl = mi->nl; in collect_profsyms()
375 for (i = 0; i < mi->nfuncs; i++) { in collect_profsyms()
397 profsym[ndx].module = mi; in collect_profsyms()
469 mod_info_t *mi; in process_pcsamples() local
494 for (mi = &modules; mi; mi = mi->next) { in process_pcsamples()
495 if (mi->active == FALSE) in process_pcsamples()
497 assign_pcsamples(mi, pc_samples, nelem); in process_pcsamples()
509 mod_info_t *mi; in process_cgraph() local
527 for (mi = &modules; mi; mi = mi->next) { in process_cgraph()
528 if (mi->active == FALSE) in process_cgraph()
531 if (calleep->topc >= mi->load_base && in process_cgraph()
532 calleep->topc < mi->load_end) { in process_cgraph()
538 if (nl = nllookup(mi, calleep->topc, 0)) { in process_cgraph()
539 f_end = mi->load_base + (nl->value - in process_cgraph()
540 mi->txt_origin) + nl->size; in process_cgraph()
552 mod_info_t *mi; in get_shobj_syms() local
555 if ((mi = malloc(sizeof (mod_info_t))) == NULL) { in get_shobj_syms()
561 mi->path = malloc(strlen(pathname) + 1); in get_shobj_syms()
562 if (mi->path == NULL) { in get_shobj_syms()
567 (void) strcpy(mi->path, pathname); in get_shobj_syms()
568 mi->next = NULL; in get_shobj_syms()
570 get_syms(pathname, mi); in get_shobj_syms()
573 mi->id = n_modules + 1; in get_shobj_syms()
574 mi->load_base = ld_base; in get_shobj_syms()
575 mi->load_end = ld_end; in get_shobj_syms()
576 mi->active = TRUE; in get_shobj_syms()
580 return (mi); in get_shobj_syms()
621 mod_info_t *mi, *last, *new_module; in process_modules() local
667 while ((mi = last->next) != NULL) { in process_modules()
674 if (strcmp(mi->path, so_path) == 0) in process_modules()
681 if (does_overlap(newmodp, mi)) in process_modules()
682 mi->active = FALSE; in process_modules()
684 last = mi; in process_modules()
688 if (mi != NULL) { in process_modules()
689 mi->load_base = newmodp->startaddr; in process_modules()
690 mi->load_end = newmodp->endaddr; in process_modules()
691 mi->active = TRUE; in process_modules()
786 get_aout_syms(char *pathname, mod_info_t *mi) in get_aout_syms() argument
788 mi->path = malloc(strlen(pathname) + 1); in get_aout_syms()
789 if (mi->path == NULL) { in get_aout_syms()
795 (void) strcpy(mi->path, pathname); in get_aout_syms()
796 mi->next = NULL; in get_aout_syms()
798 get_syms(pathname, mi); in get_aout_syms()
800 mi->id = 1; in get_aout_syms()
801 mi->load_base = mi->txt_origin; in get_aout_syms()
802 mi->load_end = mi->data_end; in get_aout_syms()
803 mi->active = TRUE; in get_aout_syms()