/system/core/libbacktrace/ |
D | ThreadEntry.cpp | 28 ThreadEntry* ThreadEntry::list_ = nullptr; 29 pthread_mutex_t ThreadEntry::list_mutex_ = PTHREAD_MUTEX_INITIALIZER; 33 ThreadEntry::ThreadEntry(pid_t pid, pid_t tid) in ThreadEntry() function in ThreadEntry 36 next_(ThreadEntry::list_), prev_(nullptr) { in ThreadEntry() 43 if (ThreadEntry::list_) { in ThreadEntry() 44 ThreadEntry::list_->prev_ = this; in ThreadEntry() 46 ThreadEntry::list_ = this; in ThreadEntry() 49 ThreadEntry* ThreadEntry::Get(pid_t pid, pid_t tid, bool create) { in Get() 50 pthread_mutex_lock(&ThreadEntry::list_mutex_); in Get() 51 ThreadEntry* entry = list_; in Get() [all …]
|
D | ThreadEntry.h | 24 class ThreadEntry { 26 static ThreadEntry* Get(pid_t pid, pid_t tid, bool create = true); 28 static void Remove(ThreadEntry* entry); 51 ThreadEntry(pid_t pid, pid_t tid); 52 ~ThreadEntry(); 63 ThreadEntry* next_; 64 ThreadEntry* prev_; 67 static ThreadEntry* list_;
|
D | BacktraceCurrent.cpp | 123 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); in SignalHandler() 153 ThreadEntry* entry = ThreadEntry::Get(Pid(), Tid()); in UnwindThread() 163 ThreadEntry::Remove(entry); in UnwindThread() 179 ThreadEntry::Remove(entry); in UnwindThread() 227 ThreadEntry::Remove(entry); in UnwindThread()
|
D | Android.bp | 52 "ThreadEntry.cpp",
|
/system/extras/simpleperf/ |
D | dwarf_unwind.h | 25 struct ThreadEntry; 28 using ThreadEntry = simpleperf::ThreadEntry; variable 30 std::vector<uint64_t> UnwindCallChain(int abi, const ThreadEntry& thread, const RegSet& regs,
|
D | thread_tree.h | 64 struct ThreadEntry { struct 91 ThreadEntry* FindThreadOrNew(int pid, int tid); 96 const MapEntry* FindMap(const ThreadEntry* thread, uint64_t ip, 99 const MapEntry* FindMap(const ThreadEntry* thread, uint64_t ip); 123 ThreadEntry* CreateThread(int pid, int tid); 129 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; 149 using ThreadEntry = simpleperf::ThreadEntry; variable
|
D | thread_tree.cpp | 49 ThreadEntry* thread = FindThreadOrNew(pid, tid); in SetThreadName() 58 ThreadEntry* parent = FindThreadOrNew(ppid, ptid); in ForkThread() 59 ThreadEntry* child = FindThreadOrNew(pid, tid); in ForkThread() 67 ThreadEntry* ThreadTree::FindThreadOrNew(int pid, int tid) { in FindThreadOrNew() 82 ThreadEntry* ThreadTree::CreateThread(int pid, int tid) { in CreateThread() 89 ThreadEntry* process = FindThreadOrNew(pid, pid); in CreateThread() 92 ThreadEntry* thread = new ThreadEntry{ in CreateThread() 97 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in CreateThread() 132 ThreadEntry* thread = FindThreadOrNew(pid, tid); in AddThreadMap() 201 const MapEntry* ThreadTree::FindMap(const ThreadEntry* thread, uint64_t ip, in FindMap() [all …]
|
D | cmd_report_sample.cpp | 91 void GetCallEntry(const ThreadEntry* thread, bool in_kernel, uint64_t ip, 94 void GetCallEntry(const ThreadEntry* thread, bool in_kernel, uint64_t ip, 365 const ThreadEntry* thread = in PrintSampleRecordInProtobuf() 415 void ReportSampleCommand::GetCallEntry(const ThreadEntry* thread, in GetCallEntry() 435 void ReportSampleCommand::GetCallEntry(const ThreadEntry* thread, in GetCallEntry() 512 const ThreadEntry* thread = in PrintSampleRecord()
|
D | cmd_report.cpp | 67 const ThreadEntry* thread; 77 uint64_t sample_count, const ThreadEntry* thread, in SampleEntry() 140 const ThreadEntry* thread = in CreateSample() 155 const ThreadEntry* thread = in CreateBranchSample() 179 const ThreadEntry* thread = sample->thread; in CreateCallChainSample() 189 const ThreadEntry* GetThreadOfSample(SampleEntry* sample) override { in GetThreadOfSample()
|
D | sample_tree_test.cpp | 65 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddSample() 84 const ThreadEntry* GetThreadOfSample(SampleEntry*) override { in GetThreadOfSample()
|
D | sample_tree.h | 102 const ThreadEntry* thread = GetThreadOfSample(sample); in ProcessSampleRecord() 191 virtual const ThreadEntry* GetThreadOfSample(EntryT*) = 0;
|
D | dwarf_unwind.cpp | 97 std::vector<uint64_t> UnwindCallChain(int abi, const ThreadEntry& thread, in UnwindCallChain()
|
D | report_lib_interface.cpp | 147 const ThreadEntry* current_thread_;
|
D | cmd_record.cpp | 843 ThreadEntry* thread = in UnwindRecord() 1053 const ThreadEntry* thread = in CollectHitFileInfo()
|
D | cmd_kmem.cpp | 229 const ThreadEntry* GetThreadOfSample(SlabSample*) override { return nullptr; } in GetThreadOfSample()
|
/system/extras/simpleperf/nonlinux_support/ |
D | nonlinux_support.cpp | 23 std::vector<uint64_t> UnwindCallChain(int, const ThreadEntry&, const RegSet&, in UnwindCallChain() argument
|