Lines Matching refs:CacheNode
30 cache_stat_.max_node_count = cache_size / sizeof(CacheNode); in LRUCache()
34 nodes_ = new CacheNode[cache_stat_.max_node_count + 1]; // with 1 sentinel node in LRUCache()
47 std::vector<CacheNode*> chain; in AddCallChain()
49 CacheNode* node = GetNode(tid, ips[i], sps[i]); in AddCallChain()
76 CacheNode* top = chain.back(); in AddCallChain()
104 bool LRUCache::CacheNodeEqual(const CacheNode* n1, const CacheNode* n2) { in CacheNodeEqual()
108 size_t LRUCache::CacheNodeHash(const CacheNode* n) { in CacheNodeHash()
112 CacheNode* LRUCache::GetNode(uint32_t tid, uint64_t ip, uint64_t sp) { in GetNode()
113 CacheNode* node = FindNode(tid, ip, sp); in GetNode()
134 CacheNode* LRUCache::AllocNode() { in AllocNode()
139 CacheNode* node = &nodes_[nodes_->leaf_link_next]; in AllocNode()
142 CacheNode* parent = GetParent(node); in AllocNode()
150 void LRUCache::LinkParent(CacheNode* child, CacheNode* new_parent) { in LinkParent()
151 CacheNode* old_parent = GetParent(child); in LinkParent()
165 void LRUCache::UnlinkParent(CacheNode* child) { in UnlinkParent()
166 CacheNode* old_parent = GetParent(child); in UnlinkParent()