Lines Matching refs:ret

140 	int ret = (a_thr_uid > b_thr_uid) - (a_thr_uid < b_thr_uid);  in prof_tctx_comp()  local
141 if (ret == 0) { in prof_tctx_comp()
144 ret = (a_thr_discrim > b_thr_discrim) - (a_thr_discrim < in prof_tctx_comp()
146 if (ret == 0) { in prof_tctx_comp()
149 ret = (a_tctx_uid > b_tctx_uid) - (a_tctx_uid < in prof_tctx_comp()
153 return (ret); in prof_tctx_comp()
165 int ret = memcmp(a->bt.vec, b->bt.vec, comp_len * sizeof(void *)); in rb_gen() local
166 if (ret == 0) in rb_gen()
167 ret = (a_len > b_len) - (a_len < b_len); in rb_gen()
168 return (ret); in rb_gen()
177 int ret; in rb_gen() local
181 ret = ((a_uid > b_uid) - (a_uid < b_uid)); in rb_gen()
182 if (ret == 0) { in rb_gen()
186 ret = ((a_discrim > b_discrim) - (a_discrim < b_discrim)); in rb_gen()
188 return (ret); in rb_gen()
761 } ret; in prof_lookup() local
772 not_found = ckh_search(&tdata->bt2tctx, bt, NULL, &ret.v); in prof_lookup()
774 ret.p->prepared = true; in prof_lookup()
792 ret.v = iallocztm(tsd, sizeof(prof_tctx_t), false, tcache, true, in prof_lookup()
794 if (ret.p == NULL) { in prof_lookup()
799 ret.p->tdata = tdata; in prof_lookup()
800 ret.p->thr_uid = tdata->thr_uid; in prof_lookup()
801 ret.p->thr_discrim = tdata->thr_discrim; in prof_lookup()
802 memset(&ret.p->cnts, 0, sizeof(prof_cnt_t)); in prof_lookup()
803 ret.p->gctx = gctx; in prof_lookup()
804 ret.p->tctx_uid = tdata->tctx_uid_next++; in prof_lookup()
805 ret.p->prepared = true; in prof_lookup()
806 ret.p->state = prof_tctx_state_initializing; in prof_lookup()
808 error = ckh_insert(tsd, &tdata->bt2tctx, btkey, ret.v); in prof_lookup()
813 idalloctm(tsd, ret.v, tcache, true); in prof_lookup()
817 ret.p->state = prof_tctx_state_nominal; in prof_lookup()
818 tctx_tree_insert(&gctx->tctxs, ret.p); in prof_lookup()
823 return (ret.p); in prof_lookup()
955 bool ret = false; in prof_dump_flush() local
968 ret = true; in prof_dump_flush()
972 return (ret); in prof_dump_flush()
978 bool ret; in prof_dump_close() local
981 ret = prof_dump_flush(propagate_err); in prof_dump_close()
985 return (ret); in prof_dump_close()
1022 bool ret; in prof_dump_printf() local
1029 ret = prof_dump_write(propagate_err, buf); in prof_dump_printf()
1031 return (ret); in prof_dump_printf()
1129 prof_tctx_t *ret; in prof_tctx_finish_iter() local
1139 ret = tctx; in prof_tctx_finish_iter()
1145 ret = NULL; in prof_tctx_finish_iter()
1147 return (ret); in prof_tctx_finish_iter()
1287 bool ret; in prof_dump_header() local
1297 ret = (tdata_tree_iter(&tdatas, NULL, prof_tdata_dump_iter, in prof_dump_header()
1300 return (ret); in prof_dump_header()
1313 bool ret; in prof_dump_gctx() local
1325 ret = false; in prof_dump_gctx()
1330 ret = true; in prof_dump_gctx()
1336 ret = true; in prof_dump_gctx()
1346 ret = true; in prof_dump_gctx()
1352 ret = true; in prof_dump_gctx()
1356 ret = false; in prof_dump_gctx()
1358 return (ret); in prof_dump_gctx()
1380 bool ret; in prof_dump_maps() local
1400 ret = true; in prof_dump_maps()
1410 ret = true; in prof_dump_maps()
1418 ret = true; in prof_dump_maps()
1422 ret = false; in prof_dump_maps()
1426 return (ret); in prof_dump_maps()
1449 prof_gctx_t *ret; in prof_gctx_dump_iter() local
1455 ret = gctx; in prof_gctx_dump_iter()
1459 ret = NULL; in prof_gctx_dump_iter()
1462 return (ret); in prof_gctx_dump_iter()
1940 char *ret; in prof_thread_name_alloc() local
1950 ret = iallocztm(tsd, size, false, tcache_get(tsd, true), true, NULL); in prof_thread_name_alloc()
1951 if (ret == NULL) in prof_thread_name_alloc()
1953 memcpy(ret, thread_name, size); in prof_thread_name_alloc()
1954 return (ret); in prof_thread_name_alloc()