/system/extras/simpleperf/ |
D | thread_tree_test.cpp | 26 thread_tree_.AddThreadMap(0, 0, start, end - start, start, name); in AddMap() 37 ThreadEntry* thread = thread_tree_.FindThreadOrNew(0, 0); in CheckMaps() 57 const MapEntry* entry = thread_tree_.FindMap(thread, i, false); in CheckMaps() 60 ASSERT_TRUE(thread_tree_.IsUnknownDso(entry->dso)); in CheckMaps() 68 ThreadTree thread_tree_; member in ThreadTreeTest 97 thread_tree_.AddThreadMap(0, 0, 0, 1, 0, "0", map_flags::PROT_JIT_SYMFILE_MAP); in TEST_F() 98 thread_tree_.AddThreadMap(1, 1, 1, 1, 1, "1"); in TEST_F() 99 thread_tree_.ForkThread(0, 0, 1, 1); in TEST_F() 102 ThreadEntry* thread = thread_tree_.FindThreadOrNew(0, 0); in TEST_F() 104 const MapEntry* map = thread_tree_.FindMap(thread, 0); in TEST_F() [all …]
|
D | cmd_report.cpp | 118 thread_tree_(thread_tree), in ReportCmdSampleTreeBuilder() 164 thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateSample() 166 thread_tree_->FindMap(thread, r.ip_data.ip, in_kernel); in CreateSample() 169 thread_tree_->FindSymbol(map, r.ip_data.ip, &vaddr_in_file); in CreateSample() 179 thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateBranchSample() 180 const MapEntry* from_map = thread_tree_->FindMap(thread, item.from); in CreateBranchSample() 183 thread_tree_->FindSymbol(from_map, item.from, &from_vaddr_in_file); in CreateBranchSample() 184 const MapEntry* to_map = thread_tree_->FindMap(thread, item.to); in CreateBranchSample() 187 thread_tree_->FindSymbol(to_map, item.to, &to_vaddr_in_file); in CreateBranchSample() 202 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in CreateCallChainSample() [all …]
|
D | thread_tree.cpp | 58 if (auto it = thread_tree_.find(tid); it != thread_tree_.end()) { in FindThread() 65 auto it = thread_tree_.find(tid); in FindThreadOrNew() 66 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in FindThreadOrNew() 69 if (it != thread_tree_.end()) { in FindThreadOrNew() 92 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in CreateThread() 98 auto it = thread_tree_.find(tid); in ExitThread() 99 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in ExitThread() 100 thread_tree_.erase(it); in ExitThread() 274 thread_tree_.clear(); in ClearThreadAndMap()
|
D | cmd_debug_unwind.cpp | 128 ThreadTree thread_tree_; member in DebugUnwindCommand 189 reader_->LoadBuildIdAndFileFeatures(thread_tree_); in UnwindRecordFile() 236 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessRecord() 267 thread_tree_.Update(*record); in ProcessRecord() 274 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CollectHitFileInfo() 276 const MapEntry* map = thread_tree_.FindMap(thread, ip, false); in CollectHitFileInfo() 281 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, nullptr, &dso); in CollectHitFileInfo() 369 if (!writer_->WriteFileFeatures(thread_tree_.GetAllDsos())) { in WriteFeatureSections()
|
D | cmd_report_sample.cpp | 135 ThreadTree thread_tree_; member in __anon5d136c400111::ReportSampleCommand 180 thread_tree_.ShowMarkForUnknownSymbol(); in Run() 181 thread_tree_.ShowIpForUnknownSymbol(); in Run() 426 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFile() 467 thread_tree_.Update(*record); in ProcessRecord() 497 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessSampleRecord() 545 if (node.symbol != thread_tree_.UnknownSymbol()) { in PrintSampleRecordInProtobuf() 581 const MapEntry* map = thread_tree_.FindMap(thread, ip, in_kernel); in GetCallEntry() 582 if (omit_unknown_dso && thread_tree_.IsUnknownDso(map->dso)) { in GetCallEntry() 585 entry->symbol = thread_tree_.FindSymbol(map, ip, &(entry->vaddr_in_file), &(entry->dso)); in GetCallEntry() [all …]
|
D | cmd_dumprecord.cpp | 165 ThreadTree thread_tree_; member in __anonb955a9b80111::DumpRecordCommand 274 thread_tree_.ShowIpForUnknownSymbol(); in DumpDataSection() 275 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in DumpDataSection() 285 thread_tree_.Update(*r); in ProcessRecord() 296 etm_decoder_ = ETMDecoder::Create(*static_cast<AuxTraceInfoRecord*>(r), thread_tree_); in ProcessRecord() 362 ThreadEntry* thread = thread_tree_.FindThreadOrNew(pid, tid); in GetSymbolInfo() 363 const MapEntry* map = thread_tree_.FindMap(thread, ip, in_kernel); in GetSymbolInfo() 365 info.symbol = thread_tree_.FindSymbol(map, ip, &info.vaddr_in_file, &info.dso); in GetSymbolInfo()
|
D | sample_tree_test.cpp | 62 : SampleTreeBuilder(TestSampleComparator()), thread_tree_(thread_tree) {} in TestSampleTreeBuilder() 65 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddSample() 66 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in AddSample() 93 ThreadTree* thread_tree_; member in __anonb1d6cd600111::TestSampleTreeBuilder
|
D | report_lib_interface.cpp | 156 void ShowIpForUnknownSymbol() { thread_tree_.ShowIpForUnknownSymbol(); } in ShowIpForUnknownSymbol() 180 ThreadTree thread_tree_; member in ReportLib 230 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFileIfNecessary() 236 for (Dso* dso : thread_tree_.GetAllDsos()) { in OpenRecordFileIfNecessary() 260 thread_tree_.Update(*record); in GetNextSample() 292 current_thread_ = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in SetCurrentSample() 314 const MapEntry* map = thread_tree_.FindMap(current_thread_, ips[i], i < kernel_ip_count); in SetCurrentSample() 336 const Symbol* symbol = thread_tree_.FindSymbol(map, ip, &vaddr_in_file); in SetCurrentSample()
|
D | cmd_kmem.cpp | 119 thread_tree_(thread_tree), in SlabSampleTreeBuilder() 180 const Symbol* symbol = thread_tree_->FindKernelSymbol(call_site); in CreateSample() 221 const Symbol* symbol = thread_tree_->FindKernelSymbol(ip); in CreateCallChainSample() 250 ThreadTree* thread_tree_; member in __anoncbe18e6d0111::SlabSampleTreeBuilder 352 ThreadTree thread_tree_; member in __anoncbe18e6d0111::KmemCommand 546 new SlabSampleTreeBuilder(comparator, &thread_tree_)); in PrepareToBuildSampleTree() 569 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile() 608 thread_tree_.Update(*record); in ProcessRecord()
|
D | cmd_record.cpp | 361 ThreadTree thread_tree_; member in RecordCommand 1378 thread_tree_.Update(*record); in SaveRecordAfterUnwinding() 1424 thread_tree_.AddDexFileOffset(info.file_path, info.dex_file_offset); in ProcessJITDebugInfo() 1531 thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord() 1638 thread_tree_.ClearThreadAndMap(); in DumpAdditionalFeatures() 1646 thread_tree_.Update(*r); in DumpAdditionalFeatures() 1717 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpBuildIdFeature() 1760 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpFileFeature() 1761 return record_file_writer_->WriteFileFeatures(thread_tree_.GetAllDsos()); in DumpFileFeature() 1793 thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CollectHitFileInfo() [all …]
|
D | ETMDecoder.cpp | 170 : PacketCallback(PacketCallback::MAP_LOCATOR), thread_tree_(thread_tree) {} in MapLocator() 172 ThreadTree& GetThreadTree() { return thread_tree_; } in GetThreadTree() 209 data.thread = thread_tree_.FindThread(data.tid); in FindMap() 220 return thread_tree_.GetKernelMaps().FindMapByAddr(addr); in FindMap() 230 ThreadTree& thread_tree_; member in __anon83ecdb8c0111::MapLocator 619 ETMDecoderImpl(ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in ETMDecoderImpl() 713 map_locator_.reset(new MapLocator(thread_tree_)); in InstallMapLocator() 735 ThreadTree& thread_tree_; member in __anon83ecdb8c0111::ETMDecoderImpl
|
D | cmd_inject.cpp | 197 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ProcessInputFile() 211 thread_tree_.Update(*r); in ProcessRecord() 213 etm_decoder_ = ETMDecoder::Create(*static_cast<AuxTraceInfoRecord*>(r), thread_tree_); in ProcessRecord() 438 ThreadTree thread_tree_; member in __anon690e1f400111::InjectCommand
|
D | thread_tree.h | 153 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; variable
|