Home
last modified time | relevance | path

Searched refs:CacheNode (Results 1 – 3 of 3) sorted by relevance

/aosp12/system/extras/simpleperf/
H A DCallChainJoiner.h33 struct CacheNode { struct
52 static_assert(sizeof(CacheNode) == 32, ""); argument
78 CacheNode key; in FindNode()
87 static bool CacheNodeEqual(const CacheNode* n1, const CacheNode* n2);
93 CacheNode* GetParent(CacheNode* node) { in GetParent()
106 void AppendNodeToLRUList(CacheNode* node) { in AppendNodeToLRUList()
107 CacheNode* next = &nodes_[0]; in AppendNodeToLRUList()
122 CacheNode* AllocNode();
123 void LinkParent(CacheNode* child, CacheNode* new_parent);
124 void UnlinkParent(CacheNode* child);
[all …]
H A DCallChainJoiner.cpp47 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()
113 CacheNode* node = FindNode(tid, ip, sp); in GetNode()
134 CacheNode* LRUCache::AllocNode() { 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()
[all …]
H A DCallChainJoiner_test.cpp37 LRUCache cache(sizeof(CacheNode) * 2, 1); in TEST()
72 LRUCache cache1(sizeof(CacheNode) * 4, 1); in TEST()
80 LRUCache cache2(sizeof(CacheNode) * 4, 2); in TEST()
88 LRUCache cache3(sizeof(CacheNode) * 4, 2); in TEST()
97 LRUCache cache(sizeof(CacheNode) * 2, 1); in TEST()
108 LRUCache cache(sizeof(CacheNode) * 4, 1); in TEST()
129 LRUCache cache(sizeof(CacheNode) * 12, 1); in TEST()
168 CallChainJoiner joiner(sizeof(CacheNode) * 1024, 1, true); in TEST_F()
222 ASSERT_EQ(joiner.GetCacheStat().cache_size, sizeof(CacheNode) * 1024); in TEST_F()
234 CallChainJoiner joiner(sizeof(CacheNode) * 1024, 1, false); in TEST_F()
[all …]