Home
last modified time | relevance | path

Searched refs:sps (Results 1 – 12 of 12) sorted by relevance

/system/extras/simpleperf/
DCallChainJoiner.cpp45 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()
92 sps.resize(chain.size()); in AddCallChain()
97 sps.push_back(top->sp); in AddCallChain()
179 const std::vector<uint64_t>& sps, in WriteCallChain() argument
197 MoveToBinaryFormat(sps.data(), ip_count, p); in WriteCallChain()
207 std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) { in ReadCallChain() argument
227 sps.resize(ip_count); in ReadCallChain()
228 MoveFromBinaryFormat(sps.data(), ip_count, p); in ReadCallChain()
235 std::vector<uint64_t>& sps) { in ReadCallChainInReverseOrder() argument
[all …]
DCallChainJoiner_test.cpp183 std::vector<uint64_t> sps; in TEST_F() local
186 ASSERT_TRUE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
192 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3})); in TEST_F()
196 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3, 4, 5})); in TEST_F()
200 ASSERT_TRUE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
206 ASSERT_EQ(sps, std::vector<uint64_t>({3, 4, 5})); in TEST_F()
209 ASSERT_TRUE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
215 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4})); in TEST_F()
219 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4, 5})); in TEST_F()
223 ASSERT_FALSE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
[all …]
DCallChainJoiner.h73 void AddCallChain(pid_t tid, std::vector<uint64_t>& ips, std::vector<uint64_t>& sps);
159 const std::vector<uint64_t>& sps);
162 std::vector<uint64_t>& sps);
Dcmd_debug_unwind.cpp239 std::vector<uint64_t> sps; in ProcessRecord() local
241 r.GetValidStackSize(), &ips, &sps)) { in ProcessRecord()
261 CallChainJoiner::ORIGINAL_OFFLINE, ips, sps)) { in ProcessRecord()
326 std::vector<uint64_t> sps; in JoinCallChains() local
328 if (!callchain_joiner_.GetNextCallChain(pid, tid, type, ips, sps)) { in JoinCallChains()
331 if (!writer_->WriteRecord(CallChainRecord(pid, tid, type, sr.Timestamp(), ips, sps))) { in JoinCallChains()
DOfflineUnwinder_impl.h43 std::vector<uint64_t>* sps) override;
DOfflineUnwinder.h62 std::vector<uint64_t>* sps) = 0;
DOfflineUnwinder.cpp225 std::vector<uint64_t>* ips, std::vector<uint64_t>* sps) { in UnwindCallChain() argument
232 sps->clear(); in UnwindCallChain()
271 sps->push_back(frame.sp); in UnwindCallChain()
286 sps->push_back(sp_reg_value); in UnwindCallChain()
Dsample_tree.h117 std::vector<uint64_t> sps; in ProcessSampleRecord() local
119 r.GetValidStackSize(), &user_ips, &sps)) { in ProcessSampleRecord()
Drecord.cpp1183 sps = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1190 const std::vector<uint64_t>& sps) { in CallChainRecord() argument
1191 CHECK_EQ(ips.size(), sps.size()); in CallChainRecord()
1209 this->sps = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1210 MoveToBinaryFormat(sps.data(), sps.size(), p); in CallChainRecord()
1228 PrintIndented(indent + 1, "ip 0x%" PRIx64 ", sp 0x%" PRIx64 "\n", ips[i], sps[i]); in DumpData()
Dcmd_record.cpp1534 std::vector<uint64_t> sps; in UnwindRecord() local
1536 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
1546 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
1553 CallChainJoiner::ORIGINAL_OFFLINE, ips, sps); in UnwindRecord()
1622 std::vector<uint64_t> sps; in JoinCallChains() local
1623 if (!callchain_joiner_->GetNextCallChain(pid, tid, type, ips, sps)) { in JoinCallChains()
Drecord.h593 uint64_t* sps; member
598 const std::vector<uint64_t>& ips, const std::vector<uint64_t>& sps);
/system/extras/simpleperf/scripts/
Ddebug_unwind_reporter.py316 sps = []
340 sps.append(int(m.group(2), 16))
367 if (None in [record.pid, record.tid] or n == 0 or len(sps) != n or
372 record.callchain.append(CallChainNode(ips[j], sps[j], filenames[j], vaddr_in_files[j],