Home
last modified time | relevance | path

Searched refs:sps (Results 1 – 11 of 11) 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.cpp238 std::vector<uint64_t> sps; in ProcessRecord() local
240 r.GetValidStackSize(), &ips, &sps)) { in ProcessRecord()
260 CallChainJoiner::ORIGINAL_OFFLINE, ips, sps)) { in ProcessRecord()
325 std::vector<uint64_t> sps; in JoinCallChains() local
327 if (!callchain_joiner_.GetNextCallChain(pid, tid, type, ips, sps)) { in JoinCallChains()
330 if (!writer_->WriteRecord(CallChainRecord(pid, tid, type, sr.Timestamp(), ips, sps))) { in JoinCallChains()
DOfflineUnwinder.cpp188 std::vector<uint64_t>* ips, std::vector<uint64_t>* sps) { in UnwindCallChain() argument
195 sps->clear(); in UnwindCallChain()
235 sps->push_back(frame.sp); in UnwindCallChain()
250 sps->push_back(sp_reg_value); in UnwindCallChain()
DOfflineUnwinder.h73 size_t stack_size, std::vector<uint64_t>* ips, std::vector<uint64_t>* sps);
Dsample_tree.h115 std::vector<uint64_t> sps; in ProcessSampleRecord() local
117 r.GetValidStackSize(), &user_ips, &sps)) { in ProcessSampleRecord()
Dcmd_record.cpp1417 std::vector<uint64_t> sps; in UnwindRecord() local
1419 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
1429 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
1436 CallChainJoiner::ORIGINAL_OFFLINE, ips, sps); in UnwindRecord()
1505 std::vector<uint64_t> sps; in JoinCallChains() local
1506 if (!callchain_joiner_->GetNextCallChain(pid, tid, type, ips, sps)) { in JoinCallChains()
Drecord.cpp1082 sps = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1089 const std::vector<uint64_t>& sps) { in CallChainRecord() argument
1090 CHECK_EQ(ips.size(), sps.size()); in CallChainRecord()
1108 this->sps = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1109 MoveToBinaryFormat(sps.data(), sps.size(), p); in CallChainRecord()
1127 PrintIndented(indent + 1, "ip 0x%" PRIx64 ", sp 0x%" PRIx64 "\n", ips[i], sps[i]); in DumpData()
Drecord.h517 uint64_t* sps; member
522 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],