/system/extras/simpleperf/ |
D | CallChainJoiner.cpp | 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() 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 …]
|
D | CallChainJoiner_test.cpp | 181 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 …]
|
D | CallChainJoiner.h | 73 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);
|
D | OfflineUnwinder_impl.h | 43 std::vector<uint64_t>* sps) override;
|
D | OfflineUnwinder.cpp | 244 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()
|
D | OfflineUnwinder.h | 65 std::vector<uint64_t>* sps) = 0;
|
D | record.cpp | 1171 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 …]
|
D | record.h | 583 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);
|
D | cmd_record.cpp | 364 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()
|
D | sample_tree.h | 112 std::vector<uint64_t> sps; in ProcessSampleRecord() local 114 r.GetValidStackSize(), &user_ips, &sps)) { in ProcessSampleRecord()
|
D | cmd_debug_unwind.cpp | 281 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()
|
D | cmd_monitor.cpp | 605 std::vector<uint64_t> sps; in UnwindRecord() local 607 r.GetValidStackSize(), &ips, &sps)) { in UnwindRecord()
|