Home
last modified time | relevance | path

Searched refs:ThreadEntry (Results 1 – 12 of 12) sorted by relevance

/system/core/libbacktrace/
DThreadEntry.cpp28 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 …]
DThreadEntry.h24 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_;
DBacktraceCurrent.cpp103 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()
DAndroid.mk53 ThreadEntry.cpp \
/system/extras/simpleperf/
Ddwarf_unwind.h25 struct ThreadEntry;
28 using ThreadEntry = simpleperf::ThreadEntry; variable
30 std::vector<uint64_t> UnwindCallChain(ArchType arch, const ThreadEntry& thread, const RegSet& regs,
Dthread_tree.h52 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
Dthread_tree.cpp48 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()
Dsample_tree.cpp35 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()
Dsample_tree.h47 const ThreadEntry* thread;
55 uint64_t sample_count, const ThreadEntry* thread, const MapEntry* map, in SampleEntry()
Ddwarf_unwind.cpp97 std::vector<uint64_t> UnwindCallChain(ArchType arch, const ThreadEntry& thread, in UnwindCallChain()
Dcmd_record.cpp692 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/
Dnonlinux_support.cpp23 std::vector<uint64_t> UnwindCallChain(ArchType, const ThreadEntry&, const RegSet&, in UnwindCallChain() argument