Lines Matching refs:node_idx

349   NodeIdx node_idx = nodes++;  in new_Node()  local
350 Node *node = NODE_IDX (node_idx); in new_Node()
356 fn_map->put (func, node_idx); in new_Node()
357 return node_idx; in new_Node()
377 NodeIdx node_idx; in find_path() local
381 node_idx = pathMap->get ((uint64_t) stackId); in find_path()
382 if (node_idx != 0) in find_path()
383 return node_idx; in find_path()
390 node_idx = root_idx; in find_path()
413 NodeIdx dsc_idx = find_desc_node (node_idx, cur_addr, leaf); in find_path()
415 node_idx = dsc_idx; in find_path()
424 pathMap->put ((uint64_t) stackId, node_idx); in find_path()
425 return node_idx; in find_path()
448 PathTree::find_in_desc_htable (NodeIdx node_idx, Histable *instr, bool leaf) in find_in_desc_htable() argument
451 Node *node = NODE_IDX (node_idx); in find_in_desc_htable()
461 NodeIdx dsc_idx = new_Node (node_idx, instr, leaf); in find_in_desc_htable()
504 PathTree::find_desc_node (NodeIdx node_idx, Histable *instr, bool leaf) in find_desc_node() argument
511 Node *node = NODE_IDX (node_idx); in find_desc_node()
533 NodeIdx dsc_idx = new_Node (node_idx, instr, leaf); in find_desc_node()
640 NodeIdx node_idx = path_idx; in process_packets() local
642 while (node_idx) in process_packets()
644 INCREMENT_METRIC (mslot, node_idx, mval); in process_packets()
645 node_idx = NODE_IDX (node_idx)->ancestor; in process_packets()
1397 PathTree::get_metrics (NodeIdx node_idx, int dpth) in get_metrics() argument
1399 Node *node = NODE_IDX (node_idx); in get_metrics()
1431 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_metrics()
1438 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_metrics()
1442 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_metrics()
1450 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_metrics()
1474 PathTree::get_clr_metrics (Vector<Histable*> *objs, NodeIdx node_idx, in get_clr_metrics() argument
1477 Node *node = NODE_IDX (node_idx); in get_clr_metrics()
1531 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_clr_metrics()
1540 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_clr_metrics()
1542 SUB_METRIC_VAL (hi_adj->value[ind], slots[xlate[ind]], node_idx); in get_clr_metrics()
1567 PathTree::get_cle_metrics (Vector<Histable*> *objs, NodeIdx node_idx, int pcle, in get_cle_metrics() argument
1570 Node *node = NODE_IDX (node_idx); in get_cle_metrics()
1603 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_cle_metrics()
1609 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_cle_metrics()
1611 SUB_METRIC_VAL (hi_adj->value[ind], slots[xlate[ind]], node_idx); in get_cle_metrics()
1625 PathTree::get_cle_metrics (Vector<Histable*> *objs, NodeIdx node_idx, int dpth) in get_cle_metrics() argument
1627 Node *node = NODE_IDX (node_idx); in get_cle_metrics()
1654 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_cle_metrics()
1659 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_cle_metrics()
1805 PathTree::depth_map_build (NodeIdx node_idx, int dpth) in depth_map_build() argument
1807 Node *node = NODE_IDX (node_idx); in depth_map_build()
1815 node_idxs->append (node_idx); in depth_map_build()
1875 PathTree::get_ftree_node_children (BaseMetric *bm, NodeIdx node_idx) in get_ftree_node_children() argument
1880 return ftree_internal->get_node_children (bm, node_idx); in get_ftree_node_children()
1884 PathTree::get_node_children (BaseMetric *bm, NodeIdx node_idx) in get_node_children() argument
1889 if (node_idx == 0) // special case for root in get_node_children()
1891 if (node_idx < 0 || node_idx >= nodes) in get_node_children()
1893 Node *node = NODE_IDX (node_idx); in get_node_children()
1967 NodeIdx node_idx = node_idxs->get (i); in get_nodes() local
1970 ASN_METRIC_VAL (val, slots[slot_idx], node_idx); in get_nodes()
1983 NodeIdx node_idx = node_idxs->get (i); in get_nodes() local
1985 ASN_METRIC_VAL (val, slots[slot_idx], node_idx); in get_nodes()
1998 NodeIdx node_idx = node_idxs->get (i); in get_nodes() local
2001 ASN_METRIC_VAL (val, slots[slot_idx], node_idx); in get_nodes()
2018 NodeIdx node_idx = node_idxs->get (i); in get_nodes() local
2019 Node *node = NODE_IDX (node_idx); in get_nodes()
2022 nodeIdxList->append (node_idx); in get_nodes()
2049 NodeIdx node_idx; in get_metrics() local
2055 node_idx = fn_map->get (fitem); in get_metrics()
2056 for (; node_idx; node_idx = node->funclist) in get_metrics()
2058 node = NODE_IDX (node_idx); in get_metrics()
2096 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_metrics()
2098 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_metrics()
2105 PathTree::get_self_metrics (Vector<Histable*> *objs, NodeIdx node_idx, in get_self_metrics() argument
2108 Node *node = NODE_IDX (node_idx); in get_self_metrics()
2139 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_self_metrics()
2147 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_self_metrics()
2152 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_self_metrics()
2156 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_self_metrics()
2195 NodeIdx node_idx; in get_self_metrics() local
2212 node_idx = fn_map->get (fitem); in get_self_metrics()
2213 for (; node_idx; node_idx = node->funclist) in get_self_metrics()
2215 node = NODE_IDX (node_idx); in get_self_metrics()
2264 if (IS_MVAL_ZERO (slots[xlate[ind]], node_idx)) in get_self_metrics()
2266 ADD_METRIC_VAL (hi->value[ind], slots[xlate[ind]], node_idx); in get_self_metrics()
2278 NodeIdx node_idx = fn_map->get ((Function*) func); in get_clr_instr() local
2279 Node *node = NODE_IDX (node_idx); in get_clr_instr()
2286 node = NODE_IDX (node_idx); in get_clr_instr()
2305 NodeIdx node_idx = fn_map->get ((Function*) func); in get_cle_instr() local
2306 Node *node = NODE_IDX (node_idx); in get_cle_instr()
2317 node = NODE_IDX (node_idx); in get_cle_instr()
2429 NodeIdx node_idx = fn_map->get ((Function*) obj); in dumpNodes() local
2430 Node *node = NODE_IDX (node_idx); in dumpNodes()
2553 PathTree::get_cstack_list (CStack_data *lam, NodeIdx node_idx, int dpth) in get_cstack_list() argument
2556 Node *node = NODE_IDX (node_idx); in get_cstack_list()
2569 if (IS_MVAL_ZERO (slots[xlate[mind]], node_idx)) in get_cstack_list()
2575 ADD_METRIC_VAL (item->value[mind], slots[xlate[mind]], node_idx); in get_cstack_list()
2576 ADD_METRIC_VAL (lam->total->value[mind], slots[xlate[mind]], node_idx); in get_cstack_list()