Home
last modified time | relevance | path

Searched refs:thread_tree_ (Results 1 – 18 of 18) sorted by relevance

/system/extras/simpleperf/
Dthread_tree_test.cpp28 thread_tree_.AddThreadMap(0, 0, start, end - start, start, name); in AddMap()
39 ThreadEntry* thread = thread_tree_.FindThreadOrNew(0, 0); in CheckMaps()
59 const MapEntry* entry = thread_tree_.FindMap(thread, i, false); in CheckMaps()
62 ASSERT_TRUE(thread_tree_.IsUnknownDso(entry->dso)); in CheckMaps()
70 auto thread = thread_tree_.FindThreadOrNew(pid, tid); in FindSymbol()
71 auto map = thread_tree_.FindMap(thread, ip, in_kernel); in FindSymbol()
72 return thread_tree_.FindSymbol(map, ip, nullptr, nullptr); in FindSymbol()
76 ThreadTree thread_tree_; member in ThreadTreeTest
105 thread_tree_.AddThreadMap(0, 0, 0, 1, 0, "0", map_flags::PROT_JIT_SYMFILE_MAP); in TEST_F()
106 thread_tree_.AddThreadMap(1, 1, 1, 1, 1, "1"); in TEST_F()
[all …]
Dcmd_report.cpp123 thread_tree_(thread_tree), in ReportCmdSampleTreeBuilder()
167 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateSample()
168 const MapEntry* map = thread_tree_->FindMap(thread, r.ip_data.ip, in_kernel); in CreateSample()
170 const Symbol* symbol = thread_tree_->FindSymbol(map, r.ip_data.ip, &vaddr_in_file); in CreateSample()
178 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateBranchSample()
179 const MapEntry* from_map = thread_tree_->FindMap(thread, item.from); in CreateBranchSample()
181 const Symbol* from_symbol = thread_tree_->FindSymbol(from_map, item.from, &from_vaddr_in_file); in CreateBranchSample()
182 const MapEntry* to_map = thread_tree_->FindMap(thread, item.to); in CreateBranchSample()
184 const Symbol* to_symbol = thread_tree_->FindSymbol(to_map, item.to, &to_vaddr_in_file); in CreateBranchSample()
199 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in CreateCallChainSample()
[all …]
Dthread_tree.cpp70 if (auto it = thread_tree_.find(tid); it != thread_tree_.end()) { in FindThread()
77 auto it = thread_tree_.find(tid); in FindThreadOrNew()
78 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in FindThreadOrNew()
81 if (it != thread_tree_.end()) { in FindThreadOrNew()
105 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in CreateThread()
119 auto it = thread_tree_.find(tid); in ExitThread()
120 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in ExitThread()
121 thread_tree_.erase(it); in ExitThread()
344 thread_tree_.clear(); in ClearThreadAndMap()
Dreport_utils.h51 CallChainReportBuilder(ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in CallChainReportBuilder()
81 ThreadTree& thread_tree_; variable
Dsample_tree_test.cpp63 : SampleTreeBuilder(TestSampleComparator()), thread_tree_(thread_tree) {} in TestSampleTreeBuilder()
66 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddSample()
67 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in AddSample()
88 ThreadTree* thread_tree_; member in __anonf80adda70111::TestSampleTreeBuilder
DRecordFilter.h64 RecordFilter(const ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in RecordFilter()
85 const ThreadTree& thread_tree_; variable
Dcmd_debug_unwind.cpp123 callchain_report_builder_(thread_tree_) {} in RecordFileProcessor()
149 reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ProcessFile()
200 ThreadTree thread_tree_; member in simpleperf::__anonc541a1a50111::RecordFileProcessor
251 thread_tree_.Update(*r); in ProcessRecord()
276 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
367 thread_tree_.Update(*r); in ProcessRecord()
387 ThreadEntry* thread = thread_tree_.FindThread(r.tid_data.tid); in WriteMapsForSample()
395 const MapEntry* map = thread_tree_.FindMap(thread, ips[i], false); in WriteMapsForSample()
396 if (!thread_tree_.IsUnknownDso(map->dso)) { in WriteMapsForSample()
511 thread_tree_.Update(*r); in ProcessRecord()
[all …]
Dcmd_report_sample.cpp158 callchain_report_builder_(thread_tree_) {} in ReportSampleCommand()
186 ThreadTree thread_tree_; member in simpleperf::__anon69c985670111::ReportSampleCommand
233 thread_tree_.ShowMarkForUnknownSymbol(); in Run()
234 thread_tree_.ShowIpForUnknownSymbol(); in Run()
485 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFile()
526 thread_tree_.Update(*record); in ProcessRecord()
561 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessSampleRecord()
566 if (thread_tree_.IsUnknownDso(entries[i].dso)) { in ProcessSampleRecord()
596 if (node.symbol != thread_tree_.UnknownSymbol()) { in PrintSampleRecordInProtobuf()
706 std::vector<Dso*> dsos = thread_tree_.GetAllDsos(); in PrintFileInfoInProtobuf()
[all …]
Dcmd_dumprecord.cpp214 ThreadTree thread_tree_; member in simpleperf::__anonc4eafc3f0111::DumpRecordCommand
328 thread_tree_.ShowIpForUnknownSymbol(); in DumpDataSection()
329 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in DumpDataSection()
337 thread_tree_.Update(*r); in ProcessRecord()
348 etm_decoder_ = ETMDecoder::Create(*static_cast<AuxTraceInfoRecord*>(r), thread_tree_); in ProcessRecord()
412 ThreadEntry* thread = thread_tree_.FindThreadOrNew(pid, tid); in GetSymbolInfo()
413 const MapEntry* map = thread_tree_.FindMap(thread, ip, in_kernel); in GetSymbolInfo()
415 info.symbol = thread_tree_.FindSymbol(map, ip, &info.vaddr_in_file, &info.dso); in GetSymbolInfo()
Dcmd_monitor.cpp147 record_filter_(thread_tree_) { in MonitorCommand()
185 ThreadTree thread_tree_; member in simpleperf::__anon8c2e05d20111::MonitorCommand
525 thread_tree_.Update(*record); in ProcessRecord()
565 ThreadEntry* thread = thread_tree_.FindThreadOrNew(pid, tid); in GetSymbolInfo()
566 const MapEntry* map = thread_tree_.FindMap(thread, ip, in_kernel); in GetSymbolInfo()
568 info.symbol = thread_tree_.FindSymbol(map, ip, &info.vaddr_in_file, &info.dso); in GetSymbolInfo()
602 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
Dcmd_kmem.cpp112 thread_tree_(thread_tree), in SlabSampleTreeBuilder()
172 const Symbol* symbol = thread_tree_->FindKernelSymbol(call_site); in CreateSample()
209 const Symbol* symbol = thread_tree_->FindKernelSymbol(ip); in CreateCallChainSample()
237 ThreadTree* thread_tree_; member in simpleperf::__anonbee947b40111::SlabSampleTreeBuilder
335 ThreadTree thread_tree_; member in simpleperf::__anonbee947b40111::KmemCommand
522 slab_sample_tree_builder_.reset(new SlabSampleTreeBuilder(comparator, &thread_tree_)); in PrepareToBuildSampleTree()
545 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
581 thread_tree_.Update(*record); in ProcessRecord()
Dreport_lib_interface.cpp119 callchain_report_builder_(thread_tree_) {} in ReportLib()
132 void ShowIpForUnknownSymbol() { thread_tree_.ShowIpForUnknownSymbol(); } in ShowIpForUnknownSymbol()
162 ThreadTree thread_tree_; member in simpleperf::ReportLib
209 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in OpenRecordFileIfNecessary()
230 thread_tree_.Update(*record); in GetNextSample()
262 current_thread_ = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in SetCurrentSample()
Dreport_utils.cpp96 const MapEntry* map = thread_tree_.FindMap(thread, ips[i], i < kernel_ip_count); in Build()
99 const Symbol* symbol = thread_tree_.FindSymbol(map, ips[i], &vaddr_in_file, &dso); in Build()
206 for (Dso* dso : thread_tree_.GetAllDsos()) { in CollectJavaMethods()
DRecordFilter.cpp112 if (ThreadEntry* process = thread_tree_.FindThread(r->tid_data.pid); process != nullptr) { in CheckCondition()
119 if (ThreadEntry* thread = thread_tree_.FindThread(r->tid_data.tid); thread != nullptr) { in CheckCondition()
DETMDecoder.cpp174 : PacketCallback(PacketCallback::MAP_LOCATOR), thread_tree_(thread_tree) {} in MapLocator()
176 ThreadTree& GetThreadTree() { return thread_tree_; } in GetThreadTree()
211 data.thread = thread_tree_.FindThread(data.tid); in FindMap()
222 return thread_tree_.GetKernelMaps().FindMapByAddr(addr); in FindMap()
232 ThreadTree& thread_tree_; member in simpleperf::__anon57c802930111::MapLocator
628 ETMDecoderImpl(ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in ETMDecoderImpl()
722 map_locator_.reset(new MapLocator(thread_tree_)); in InstallMapLocator()
744 ThreadTree& thread_tree_; member in simpleperf::__anon57c802930111::ETMDecoderImpl
Dcmd_inject.cpp226 thread_tree_.ExcludePid(pid); in ProcessInputFile()
229 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ProcessInputFile()
243 thread_tree_.Update(*r); in ProcessRecord()
245 etm_decoder_ = ETMDecoder::Create(*static_cast<AuxTraceInfoRecord*>(r), thread_tree_); in ProcessRecord()
592 ThreadTreeWithFilter thread_tree_; member in simpleperf::__anon3ce946470111::InjectCommand
Dcmd_record.cpp325 record_filter_(thread_tree_) { in RecordCommand()
400 ThreadTree thread_tree_; member in simpleperf::__anonf6bdce290111::RecordCommand
1424 thread_tree_.Update(*record); in SaveRecordAfterUnwinding()
1470 thread_tree_.AddDexFileOffset(info.file_path, info.dex_file_offset); in ProcessJITDebugInfo()
1574 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
1747 thread_tree_.ClearThreadAndMap(); in DumpAdditionalFeatures()
1760 thread_tree_.Update(*r); in DumpAdditionalFeatures()
1765 LoadSymbolMapFile(sample->tid_data.pid, app_package_name_, &thread_tree_); in DumpAdditionalFeatures()
1847 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpBuildIdFeature()
1891 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpFileFeature()
[all …]
Dthread_tree.h155 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; variable