Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dthread_tree_test.cpp29 thread_tree_.AddThreadMap(0, 0, start, end - start, start, name); in AddMap()
40 ThreadEntry* thread = thread_tree_.FindThreadOrNew(0, 0); in CheckMaps()
60 const MapEntry* entry = thread_tree_.FindMap(thread, i, false); in CheckMaps()
63 ASSERT_TRUE(thread_tree_.IsUnknownDso(entry->dso)); in CheckMaps()
71 auto thread = thread_tree_.FindThreadOrNew(pid, tid); in FindSymbol()
72 auto map = thread_tree_.FindMap(thread, ip, in_kernel); in FindSymbol()
73 return thread_tree_.FindSymbol(map, ip, nullptr, nullptr); in FindSymbol()
77 ThreadTree thread_tree_; member in ThreadTreeTest
108 thread_tree_.AddThreadMap(0, 0, 0, 1, 0, "0", map_flags::PROT_JIT_SYMFILE_MAP); in TEST_F()
109 thread_tree_.AddThreadMap(1, 1, 1, 1, 1, "1"); in TEST_F()
[all …]
DBranchListFile.cpp144 ThreadTree& GetThreadTree() { return thread_tree_; } in GetThreadTree()
148 const ThreadEntry* thread = thread_tree_.FindThread(tid); in FindThread()
167 void DisableThreadExitRecords() override { thread_tree_.DisableThreadExitRecords(); } in DisableThreadExitRecords()
168 const MapSet& GetKernelMaps() override { return thread_tree_.GetKernelMaps(); } in GetKernelMaps()
175 thread_tree_.SetThreadName(pid, tid, comm); in FindThreadFromProc()
176 return thread_tree_.FindThread(tid); in FindThreadFromProc()
187 thread_tree_.AddThreadMap(pid, pid, map.start_addr, map.len, map.pgoff, map.name); in DumpMapsFromProc()
193 ThreadTree thread_tree_; member in simpleperf::ETMThreadTreeWhenRecording
202 : thread_tree_(dump_maps_from_proc), binary_filter_(nullptr) {} in ETMBranchListGeneratorImpl()
204 void SetExcludePid(pid_t pid) override { thread_tree_.ExcludePid(pid); } in SetExcludePid()
[all …]
Dcmd_dumprecord.cpp184 ETMThreadTreeForDumpCmd(ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in ETMThreadTreeForDumpCmd()
186 void DisableThreadExitRecords() override { thread_tree_.DisableThreadExitRecords(); } in DisableThreadExitRecords()
187 const ThreadEntry* FindThread(int tid) override { return thread_tree_.FindThread(tid); } in FindThread()
188 const MapSet& GetKernelMaps() override { return thread_tree_.GetKernelMaps(); } in GetKernelMaps()
191 ThreadTree& thread_tree_; member in simpleperf::__anonb955a9b80111::ETMThreadTreeForDumpCmd
230 ThreadTree thread_tree_; member in simpleperf::__anonb955a9b80111::DumpRecordCommand
340 thread_tree_.ShowIpForUnknownSymbol(); in DumpDataSection()
341 if (!record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_)) { in DumpDataSection()
351 thread_tree_.Update(*r); in ProcessRecord()
362 etm_thread_tree_.reset(new ETMThreadTreeForDumpCmd(thread_tree_)); in ProcessRecord()
[all …]
Dcmd_report.cpp137 thread_tree_(thread_tree), in ReportCmdSampleTreeBuilder()
178 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateSample()
179 const MapEntry* map = thread_tree_->FindMap(thread, r.ip_data.ip, in_kernel); in CreateSample()
181 const Symbol* symbol = thread_tree_->FindSymbol(map, r.ip_data.ip, &vaddr_in_file); in CreateSample()
193 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CreateBranchSample()
194 const MapEntry* from_map = thread_tree_->FindMap(thread, item.from); in CreateBranchSample()
196 const Symbol* from_symbol = thread_tree_->FindSymbol(from_map, item.from, &from_vaddr_in_file); in CreateBranchSample()
197 const MapEntry* to_map = thread_tree_->FindMap(thread, item.to); in CreateBranchSample()
199 const Symbol* to_symbol = thread_tree_->FindSymbol(to_map, item.to, &to_vaddr_in_file); in CreateBranchSample()
214 const MapEntry* map = thread_tree_->FindMap(thread, ip, in_kernel); in CreateCallChainSample()
[all …]
Dthread_tree.cpp79 if (auto it = thread_tree_.find(tid); it != thread_tree_.end()) { in FindThread()
86 auto it = thread_tree_.find(tid); in FindThreadOrNew()
87 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in FindThreadOrNew()
90 if (it != thread_tree_.end()) { in FindThreadOrNew()
114 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in CreateThread()
128 auto it = thread_tree_.find(tid); in ExitThread()
129 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in ExitThread()
130 thread_tree_.erase(it); in ExitThread()
357 thread_tree_.clear(); in ClearThreadAndMap()
DRecordFilter.cpp84 ProcessNameFilter(const ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in ProcessNameFilter()
96 ThreadEntry* process = thread_tree_.FindThread(sample.tid_data.pid); in Check()
108 const ThreadTree& thread_tree_; member in simpleperf::__anon48ec37950111::ProcessNameFilter
115 ThreadNameFilter(const ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in ThreadNameFilter()
127 ThreadEntry* thread = thread_tree_.FindThread(sample.tid_data.tid); in Check()
139 const ThreadTree& thread_tree_; member in simpleperf::__anon48ec37950111::ThreadNameFilter
390 RecordFilter::RecordFilter(const ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in RecordFilter()
471 process_name_filter.reset(new ProcessNameFilter(thread_tree_)); in AddProcessNameRegex()
480 thread_name_filter.reset(new ThreadNameFilter(thread_tree_)); in AddThreadNameRegex()
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 __anonb1d6cd600111::TestSampleTreeBuilder
Dcmd_monitor.cpp148 record_filter_(thread_tree_) { in MonitorCommand()
185 ThreadTree thread_tree_; member in simpleperf::__anon3cedfdeb0111::MonitorCommand
519 thread_tree_.Update(*record); in ProcessRecord()
559 ThreadEntry* thread = thread_tree_.FindThreadOrNew(pid, tid); in GetSymbolInfo()
560 const MapEntry* map = thread_tree_.FindMap(thread, ip, in_kernel); in GetSymbolInfo()
562 info.symbol = thread_tree_.FindSymbol(map, ip, &info.vaddr_in_file, &info.dso); in GetSymbolInfo()
596 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
Dcmd_debug_unwind.cpp123 callchain_report_builder_(thread_tree_) {} in RecordFileProcessor()
149 if (!reader_->LoadBuildIdAndFileFeatures(thread_tree_)) { in ProcessFile()
202 ThreadTree thread_tree_; member in simpleperf::__anon7f0d915e0111::RecordFileProcessor
254 thread_tree_.Update(*r); in ProcessRecord()
298 std::make_pair(thread_tree_.FindUserDsoOrNew(filename), old_pgoff); in UpdateMmapRecordForEmbeddedFiles()
305 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
384 thread_tree_.Update(*r); in ProcessRecord()
404 ThreadEntry* thread = thread_tree_.FindThread(r.tid_data.tid); in WriteMapsForSample()
530 thread_tree_.Update(*r); in ProcessRecord()
543 ThreadEntry* thread = thread_tree_.FindThreadOrNew(sr.tid_data.pid, sr.tid_data.tid); in ReportUnwindingResult()
Dreport_utils.cpp210 JITFrameConverter(const ThreadTree& thread_tree) : thread_tree_(thread_tree) {} in JITFrameConverter()
255 for (Dso* dso : thread_tree_.GetAllDsos()) { in CollectJavaMethods()
266 const ThreadTree& thread_tree_; member in simpleperf::JITFrameConverter
348 : thread_tree_(thread_tree) { in CallChainReportBuilder()
374 jit_frame_converter_.reset(new JITFrameConverter(thread_tree_)); in SetConvertJITFrame()
401 const MapEntry* map = thread_tree_.FindMap(thread, ips[i], i < kernel_ip_count); in Build()
404 const Symbol* symbol = thread_tree_.FindSymbol(map, ips[i], &vaddr_in_file, &dso); in Build()
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::__anoncbe18e6d0111::SlabSampleTreeBuilder
335 ThreadTree thread_tree_; member in simpleperf::__anoncbe18e6d0111::KmemCommand
523 slab_sample_tree_builder_.reset(new SlabSampleTreeBuilder(comparator, &thread_tree_)); in PrepareToBuildSampleTree()
545 if (!record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_)) { in ReadFeaturesFromRecordFile()
583 thread_tree_.Update(*record); in ProcessRecord()
Dcmd_inject.cpp169 if (!reader_->LoadBuildIdAndFileFeatures(thread_tree_)) { in Read()
197 ThreadTree thread_tree_; member in simpleperf::__anon690e1f400111::PerfDataReader
208 : thread_tree_(thread_tree), exclude_pid_(exclude_pid) {} in ETMThreadTreeWithFilter()
210 void DisableThreadExitRecords() override { thread_tree_.DisableThreadExitRecords(); } in DisableThreadExitRecords()
213 const ThreadEntry* thread = thread_tree_.FindThread(tid); in FindThread()
220 const MapSet& GetKernelMaps() override { return thread_tree_.GetKernelMaps(); } in GetKernelMaps()
223 ThreadTree& thread_tree_; member in simpleperf::__anon690e1f400111::ETMThreadTreeWithFilter
234 etm_thread_tree_(thread_tree_, exclude_pid_) {} in ETMPerfDataReader()
245 thread_tree_.Update(r); in ProcessRecord()
420 thread_tree_.Update(r); in ProcessRecord()
[all …]
Dcmd_report_sample.cpp197 callchain_report_builder_(thread_tree_), in ReportSampleCommand()
198 record_filter_(thread_tree_) {} in ReportSampleCommand()
229 ThreadTree thread_tree_; member in simpleperf::__anon5d136c400111::ReportSampleCommand
277 thread_tree_.ShowMarkForUnknownSymbol(); in Run()
278 thread_tree_.ShowIpForUnknownSymbol(); in Run()
563 if (!record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_)) { in OpenRecordFile()
648 thread_tree_.Update(*record); in ProcessRecord()
702 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in ProcessSampleRecord()
709 if (thread_tree_.IsUnknownDso(callchain[i].dso)) { in ProcessSampleRecord()
802 if (node.symbol != thread_tree_.UnknownSymbol()) { in PrintSampleInProtobuf()
[all …]
Dreport_lib_interface.cpp173 callchain_report_builder_(thread_tree_), in ReportLib()
174 record_filter_(thread_tree_) {} in ReportLib()
191 void ShowIpForUnknownSymbol() { thread_tree_.ShowIpForUnknownSymbol(); } in ShowIpForUnknownSymbol()
232 ThreadTree thread_tree_; member in simpleperf::ReportLib
333 if (!record_file_reader_->LoadBuildIdAndFileFeatures(thread_tree_)) { in OpenRecordFileIfNecessary()
383 thread_tree_.Update(*record); in GetNextSampleRecord()
477 current_thread_ = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in SetCurrentSample()
Dcmd_record.cpp361 record_filter_(thread_tree_) { in RecordCommand()
444 ThreadTree thread_tree_; member in simpleperf::__anon22e2a7220111::RecordCommand
1659 thread_tree_.Update(*record); in SaveRecordAfterUnwinding()
1693 Dso* dso = thread_tree_.FindUserDsoOrNew(info.file_path, 0, DSO_DEX_FILE); in ProcessJITDebugInfo()
1707 thread_tree_.AddDexFileOffset(info.file_path, info.dex_file_offset); in ProcessJITDebugInfo()
1813 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord()
2007 thread_tree_.ClearThreadAndMap(); in DumpAdditionalFeatures()
2020 thread_tree_.Update(*r); in DumpAdditionalFeatures()
2025 LoadSymbolMapFile(sample->tid_data.pid, app_package_name_, &thread_tree_); in DumpAdditionalFeatures()
2113 std::vector<Dso*> dso_v = thread_tree_.GetAllDsos(); in DumpBuildIdFeature()
[all …]
DETMDecoder.cpp185 : PacketCallback(PacketCallback::MAP_LOCATOR), thread_tree_(thread_tree) {} in MapLocator()
222 data.thread = thread_tree_.FindThread(data.tid); in FindMap()
233 return thread_tree_.GetKernelMaps().FindMapByAddr(addr); in FindMap()
246 ETMThreadTree& thread_tree_; member in simpleperf::__anon83ecdb8c0111::MapLocator
655 ETMDecoderImpl(ETMThreadTree& thread_tree) : thread_tree_(thread_tree) { in ETMDecoderImpl()
785 map_locator_.reset(new MapLocator(thread_tree_)); in InstallMapLocator()
813 ETMThreadTree& thread_tree_; member in simpleperf::__anon83ecdb8c0111::ETMDecoderImpl
DRecordFilter.h137 const ThreadTree& thread_tree_;
Dreport_utils.h121 ThreadTree& thread_tree_; variable
Dthread_tree.h157 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; variable