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()
178 const std::vector<uint64_t>& ips, const std::vector<uint64_t>& sps, in WriteCallChain() argument
196 MoveToBinaryFormat(sps.data(), ip_count, p); in WriteCallChain()
206 std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) { in ReadCallChain() argument
226 sps.resize(ip_count); in ReadCallChain()
227 MoveFromBinaryFormat(sps.data(), ip_count, p); in ReadCallChain()
233 std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) { in ReadCallChainInReverseOrder() argument
[all …]
DCallChainJoiner_test.cpp181 std::vector<uint64_t> sps; in TEST_F() local
184 ASSERT_TRUE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
190 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3})); in TEST_F()
194 ASSERT_EQ(sps, std::vector<uint64_t>({1, 2, 3, 4, 5})); in TEST_F()
198 ASSERT_TRUE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
203 ASSERT_EQ(sps, std::vector<uint64_t>({3, 4, 5})); in TEST_F()
206 ASSERT_TRUE(joiner.GetNextCallChain(pid, tid, type, ips, sps)); in TEST_F()
212 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4})); in TEST_F()
216 ASSERT_EQ(sps, std::vector<uint64_t>({1, 4, 5})); in TEST_F()
220 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);
155 const std::vector<uint64_t>& sps);
158 std::vector<uint64_t>& sps);
DOfflineUnwinder_impl.h43 std::vector<uint64_t>* sps) override;
DOfflineUnwinder.cpp244 std::vector<uint64_t>* ips, std::vector<uint64_t>* sps) { in UnwindCallChain() argument
251 sps->clear(); in UnwindCallChain()
290 sps->push_back(frame.sp); in UnwindCallChain()
305 sps->push_back(sp_reg_value); in UnwindCallChain()
DOfflineUnwinder.h65 std::vector<uint64_t>* sps) = 0;
Drecord.cpp1171 sps = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1178 const std::vector<uint64_t>& sps) { in CallChainRecord() argument
1179 CHECK_EQ(ips.size(), sps.size()); in CallChainRecord()
1197 this->sps = reinterpret_cast<uint64_t*>(p); in CallChainRecord()
1198 MoveToBinaryFormat(sps.data(), sps.size(), p); in CallChainRecord()
1224 PrintIndented(indent + 1, "ip 0x%" PRIx64 ", sp 0x%" PRIx64 "\n", ips[i], sps[i]); in DumpData()
1261 callchain.sps = reinterpret_cast<uint64_t*>(p); in UnwindingResultRecord()
1271 const std::vector<uint64_t>& sps) { in UnwindingResultRecord() argument
1277 CHECK_EQ(ips.size(), sps.size()); in UnwindingResultRecord()
1303 MoveToBinaryFormat(sps.data(), sps.size(), p); in UnwindingResultRecord()
[all …]
Drecord.h583 uint64_t* sps; member
588 const std::vector<uint64_t>& ips, const std::vector<uint64_t>& sps);
605 uint64_t* sps = nullptr; member
613 const std::vector<uint64_t>& ips, const std::vector<uint64_t>& sps);
Dcmd_record.cpp364 const std::vector<uint64_t>& sps);
1577 std::vector<uint64_t> sps; in UnwindRecord() local
1579 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
1589 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
1593 if (keep_failed_unwinding_result_ && !KeepFailedUnwindingResult(r, ips, sps)) { in UnwindRecord()
1599 CallChainJoiner::ORIGINAL_OFFLINE, ips, sps)) { in UnwindRecord()
1608 const std::vector<uint64_t>& sps) { in KeepFailedUnwindingResult() argument
1613 r.time_data.time, result, r.regs_user_data, r.stack_user_data, ips, sps)); in KeepFailedUnwindingResult()
1717 std::vector<uint64_t> sps; in JoinCallChains() local
1718 if (!callchain_joiner_->GetNextCallChain(pid, tid, type, ips, sps)) { in JoinCallChains()
Dsample_tree.h112 std::vector<uint64_t> sps; in ProcessSampleRecord() local
114 r.GetValidStackSize(), &user_ips, &sps)) { in ProcessSampleRecord()
Dcmd_debug_unwind.cpp281 std::vector<uint64_t> sps; in UnwindRecord() local
283 &sps)) { in UnwindRecord()
296 fprintf(out_fp_, "sp_%zu: 0x%" PRIx64 "\n", id, sps[i]); in UnwindRecord()
541 fprintf(out_fp_, "unwinding_sp_%zu: 0x%" PRIx64 "\n", id, unwinding_r.callchain.sps[i]); in ReportUnwindingResult()
Dcmd_monitor.cpp605 std::vector<uint64_t> sps; in UnwindRecord() local
607 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()