Lines Matching refs:tid

45 void LRUCache::AddCallChain(pid_t tid, std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) {  in AddCallChain()  argument
49 CacheNode* node = GetNode(tid, ips[i], sps[i]); in AddCallChain()
105 return n1->tid == n2->tid && n1->ip == n2->ip && n1->sp == n2->sp; in CacheNodeEqual()
109 return static_cast<size_t>(n->tid ^ n->ip ^ n->sp); in CacheNodeHash()
112 CacheNode* LRUCache::GetNode(uint32_t tid, uint64_t ip, uint64_t sp) { in GetNode() argument
113 CacheNode* node = FindNode(tid, ip, sp); in GetNode()
123 node->tid = tid; in GetNode()
177 static bool WriteCallChain(FILE* fp, pid_t pid, pid_t tid, CallChainJoiner::ChainType type, in WriteCallChain() argument
193 MoveToBinaryFormat(tid, p); in WriteCallChain()
206 static bool ReadCallChain(FILE* fp, pid_t& pid, pid_t& tid, CallChainJoiner::ChainType& type, in ReadCallChain() argument
215 MoveFromBinaryFormat(tid, p); in ReadCallChain()
232 static bool ReadCallChainInReverseOrder(FILE* fp, pid_t& pid, pid_t& tid, in ReadCallChainInReverseOrder() argument
250 MoveFromBinaryFormat(tid, p); in ReadCallChainInReverseOrder()
290 bool CallChainJoiner::AddCallChain(pid_t pid, pid_t tid, ChainType type, in AddCallChain() argument
324 return WriteCallChain(original_chains_fp_, pid, tid, type, ips, sps, ip_count); in AddCallChain()
341 pid_t tid; in JoinCallChains() local
356 if (!ReadCallChainInReverseOrder(pair.first, pid, tid, type, ips, sps)) { in JoinCallChains()
368 cache.AddCallChain(tid, ips, sps); in JoinCallChains()
375 if (!WriteCallChain(pair.second, pid, tid, type, ips, sps, ips.size())) { in JoinCallChains()
384 bool CallChainJoiner::GetNextCallChain(pid_t& pid, pid_t& tid, ChainType& type, in GetNextCallChain() argument
406 return ReadCallChain(fp, pid, tid, type, ips, sps); in GetNextCallChain()