Lines Matching refs:node
49 CacheNode* node = GetNode(tid, ips[i], sps[i]); in AddCallChain() local
50 chain.push_back(node); in AddCallChain()
113 CacheNode* node = FindNode(tid, ip, sp); in GetNode() local
114 if (node != nullptr) { in GetNode()
115 if (node->is_leaf) { in GetNode()
117 RemoveNodeFromLRUList(node); in GetNode()
118 AppendNodeToLRUList(node); in GetNode()
120 return node; in GetNode()
122 node = AllocNode(); in GetNode()
123 node->tid = tid; in GetNode()
124 node->ip = ip; in GetNode()
125 node->sp = sp; in GetNode()
126 node->is_leaf = 1; in GetNode()
127 node->parent_index = 0; in GetNode()
128 node->leaf_link_prev = node->leaf_link_next = GetNodeIndex(node); in GetNode()
129 node_set_.insert(node); in GetNode()
130 AppendNodeToLRUList(node); in GetNode()
131 return node; in GetNode()
139 CacheNode* node = &nodes_[nodes_->leaf_link_next]; in AllocNode() local
140 RemoveNodeFromLRUList(node); in AllocNode()
141 node_set_.erase(node); in AllocNode()
142 CacheNode* parent = GetParent(node); in AllocNode()
147 return node; in AllocNode()