Searched refs:ThreadEntry (Results 1 – 12 of 12) sorted by relevance
/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 | 103 ThreadEntry* entry = ThreadEntry::Get(getpid(), gettid(), false); in SignalHandler() 133 ThreadEntry* entry = ThreadEntry::Get(Pid(), Tid()); in UnwindThread() 143 ThreadEntry::Remove(entry); in UnwindThread() 159 ThreadEntry::Remove(entry); in UnwindThread() 207 ThreadEntry::Remove(entry); in UnwindThread()
|
D | Android.mk | 53 ThreadEntry.cpp \
|
/system/extras/simpleperf/ |
D | dwarf_unwind.h | 25 struct ThreadEntry; 28 using ThreadEntry = simpleperf::ThreadEntry; variable 30 std::vector<uint64_t> UnwindCallChain(ArchType arch, const ThreadEntry& thread, const RegSet& regs,
|
D | thread_tree.h | 52 struct ThreadEntry { struct 69 ThreadEntry* FindThreadOrNew(int pid, int tid); argument 74 const MapEntry* FindMap(const ThreadEntry* thread, uint64_t ip, bool in_kernel); 88 std::unordered_map<int, std::unique_ptr<ThreadEntry>> thread_tree_; 105 using ThreadEntry = simpleperf::ThreadEntry; variable
|
D | thread_tree.cpp | 48 ThreadEntry* thread = new ThreadEntry{ in AddThread() 53 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in AddThread() 62 ThreadEntry* parent = FindThreadOrNew(ppid, ptid); in ForkThread() 63 ThreadEntry* child = FindThreadOrNew(pid, tid); in ForkThread() 68 ThreadEntry* ThreadTree::FindThreadOrNew(int pid, int tid) { in FindThreadOrNew() 113 ThreadEntry* thread = FindThreadOrNew(pid, tid); in AddThreadMap() 178 const MapEntry* ThreadTree::FindMap(const ThreadEntry* thread, uint64_t ip, bool in_kernel) { in FindMap()
|
D | sample_tree.cpp | 35 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddSample() 49 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddBranchSample() 76 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddCallChainSample()
|
D | sample_tree.h | 47 const ThreadEntry* thread; 55 uint64_t sample_count, const ThreadEntry* thread, const MapEntry* map, in SampleEntry()
|
D | dwarf_unwind.cpp | 97 std::vector<uint64_t> UnwindCallChain(ArchType arch, const ThreadEntry& thread, in UnwindCallChain()
|
D | cmd_record.cpp | 692 ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in UnwindRecord() 836 const ThreadEntry* thread = thread_tree_.FindThreadOrNew(r.tid_data.pid, r.tid_data.tid); in CollectHitFileInfo()
|
/system/extras/simpleperf/nonlinux_support/ |
D | nonlinux_support.cpp | 23 std::vector<uint64_t> UnwindCallChain(ArchType, const ThreadEntry&, const RegSet&, in UnwindCallChain() argument
|