Home
last modified time | relevance | path

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

/aosp12/system/extras/simpleperf/
H A Dthread_tree_test.cpp70 auto thread = thread_tree_.FindThreadOrNew(pid, tid); in FindSymbol()
76 ThreadTree thread_tree_; member in ThreadTreeTest
106 thread_tree_.AddThreadMap(1, 1, 1, 1, 1, "1"); in TEST_F()
107 thread_tree_.ForkThread(0, 0, 1, 1); in TEST_F()
112 const MapEntry* map = thread_tree_.FindMap(thread, 0); in TEST_F()
119 thread_tree_.ForkThread(1, 2, 1, 1); in TEST_F()
121 thread_tree_.ExitThread(1, 2); in TEST_F()
123 thread_tree_.ForkThread(2, 2, 1, 1); in TEST_F()
128 thread_tree_.ForkThread(1, 2, 1, 1); in TEST_F()
129 thread_tree_.ForkThread(2, 2, 1, 1); in TEST_F()
[all …]
H A Dcmd_report.cpp123 thread_tree_(thread_tree), in ReportCmdSampleTreeBuilder()
182 const MapEntry* to_map = thread_tree_->FindMap(thread, item.to); in CreateBranchSample()
199 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in CreateCallChainSample()
200 if (thread_tree_->IsUnknownDso(map->dso)) { in CreateCallChainSample()
214 return thread_tree_->FindThreadOrNew(sample->pid, sample->tid); in GetThreadOfSample()
253 ThreadTree* thread_tree_; member in simpleperf::__anon09476f0b0110::ReportCmdSampleTreeBuilder
454 ThreadTree thread_tree_; member in simpleperf::__anon09476f0b0110::ReportCommand
596 thread_tree_.ShowIpForUnknownSymbol(); in ParseOptions()
739 sample_tree_builder_options_.thread_tree = &thread_tree_; in BuildSampleComparatorAndDisplayer()
798 record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_); in ReadFeaturesFromRecordFile()
[all …]
H A 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()
H A 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::__anondd5ea2ca0110::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 …]
H A Dcmd_report_sample.cpp158 callchain_report_builder_(thread_tree_) {} in ReportSampleCommand()
186 ThreadTree thread_tree_; member in simpleperf::__anon8586ab2c0110::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 …]
H A Dcmd_dumprecord.cpp214 ThreadTree thread_tree_; member in simpleperf::__anon8f1b70240110::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()
H A 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 __anon1027decc0110::TestSampleTreeBuilder
H A Dcmd_monitor.cpp147 record_filter_(thread_tree_) { in MonitorCommand()
185 ThreadTree thread_tree_; member in simpleperf::__anone0477bd70110::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()
H A 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::__anon711df3d90110::SlabSampleTreeBuilder
335 ThreadTree thread_tree_; member in simpleperf::__anon711df3d90110::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()
H A Dreport_utils.h51 CallChainReportBuilder(ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in CallChainReportBuilder()
81 ThreadTree& thread_tree_; variable
H A 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()
H A DRecordFilter.h64 RecordFilter(const ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in RecordFilter()
85 const ThreadTree& thread_tree_; variable
H A 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::__anon69d84bf80110::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::__anon69d84bf80110::ETMDecoderImpl
H A 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()
H A Dcmd_record.cpp325 record_filter_(thread_tree_) { in RecordCommand()
400 ThreadTree thread_tree_; member in simpleperf::__anon08ce178e0110::RecordCommand
1424 thread_tree_.Update(*record); in SaveRecordAfterUnwinding()
1470 thread_tree_.AddDexFileOffset(info.file_path, info.dex_file_offset); in ProcessJITDebugInfo()
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()
1970 const MapEntry* map = thread_tree_.FindMap(thread, ips[i], i < kernel_ip_count); in CollectHitFileInfo()
[all …]
H A 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::__anon4ef98fac0110::InjectCommand
H A 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()
H A Dthread_tree.h155 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; variable