Lines Matching refs:new_node

378 		prof_bt_node_t *new_node = (prof_bt_node_t *)  in prof_log_bt_index()  local
382 log_bt_first = new_node; in prof_log_bt_index()
383 log_bt_last = new_node; in prof_log_bt_index()
385 log_bt_last->next = new_node; in prof_log_bt_index()
386 log_bt_last = new_node; in prof_log_bt_index()
389 new_node->next = NULL; in prof_log_bt_index()
390 new_node->index = log_bt_index; in prof_log_bt_index()
395 new_node->bt.len = bt->len; in prof_log_bt_index()
396 memcpy(new_node->vec, bt->vec, bt->len * sizeof(void *)); in prof_log_bt_index()
397 new_node->bt.vec = new_node->vec; in prof_log_bt_index()
400 ckh_insert(tsd, &log_bt_node_set, (void *)new_node, NULL); in prof_log_bt_index()
401 return new_node->index; in prof_log_bt_index()
419 prof_thr_node_t *new_node = (prof_thr_node_t *) in prof_log_thr_index() local
423 log_thr_first = new_node; in prof_log_thr_index()
424 log_thr_last = new_node; in prof_log_thr_index()
426 log_thr_last->next = new_node; in prof_log_thr_index()
427 log_thr_last = new_node; in prof_log_thr_index()
430 new_node->next = NULL; in prof_log_thr_index()
431 new_node->index = log_thr_index; in prof_log_thr_index()
432 new_node->thr_uid = thr_uid; in prof_log_thr_index()
433 strcpy(new_node->name, name); in prof_log_thr_index()
436 ckh_insert(tsd, &log_thr_node_set, (void *)new_node, NULL); in prof_log_thr_index()
437 return new_node->index; in prof_log_thr_index()
480 prof_alloc_node_t *new_node = (prof_alloc_node_t *) in prof_try_log() local
497 new_node->next = NULL; in prof_try_log()
498 new_node->alloc_thr_ind = prof_log_thr_index(tsd, tctx->tdata->thr_uid, in prof_try_log()
500 new_node->free_thr_ind = prof_log_thr_index(tsd, cons_tdata->thr_uid, in prof_try_log()
502 new_node->alloc_bt_ind = prof_log_bt_index(tsd, prod_bt); in prof_try_log()
503 new_node->free_bt_ind = prof_log_bt_index(tsd, cons_bt); in prof_try_log()
504 new_node->alloc_time_ns = nstime_ns(&alloc_time); in prof_try_log()
505 new_node->free_time_ns = nstime_ns(&free_time); in prof_try_log()
506 new_node->usize = usize; in prof_try_log()
509 log_alloc_first = new_node; in prof_try_log()
510 log_alloc_last = new_node; in prof_try_log()
512 log_alloc_last->next = new_node; in prof_try_log()
513 log_alloc_last = new_node; in prof_try_log()