Home
last modified time | relevance | path

Searched refs:ThreadEntry (Results 1 – 16 of 16) 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.cpp123 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()
DAndroid.bp52 "ThreadEntry.cpp",
/system/extras/simpleperf/
Ddwarf_unwind.h25 struct ThreadEntry;
28 using ThreadEntry = simpleperf::ThreadEntry; variable
30 std::vector<uint64_t> UnwindCallChain(int abi, const ThreadEntry& thread, const RegSet& regs,
Dthread_tree.h64 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
Dthread_tree.cpp49 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 …]
Dcmd_report_sample.cpp91 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()
Dcmd_report.cpp67 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()
Dsample_tree_test.cpp65 const ThreadEntry* thread = thread_tree_->FindThreadOrNew(pid, tid); in AddSample()
84 const ThreadEntry* GetThreadOfSample(SampleEntry*) override { in GetThreadOfSample()
Dsample_tree.h102 const ThreadEntry* thread = GetThreadOfSample(sample); in ProcessSampleRecord()
191 virtual const ThreadEntry* GetThreadOfSample(EntryT*) = 0;
Ddwarf_unwind.cpp97 std::vector<uint64_t> UnwindCallChain(int abi, const ThreadEntry& thread, in UnwindCallChain()
Dreport_lib_interface.cpp147 const ThreadEntry* current_thread_;
Dcmd_record.cpp843 ThreadEntry* thread = in UnwindRecord()
1053 const ThreadEntry* thread = in CollectHitFileInfo()
Dcmd_kmem.cpp229 const ThreadEntry* GetThreadOfSample(SlabSample*) override { return nullptr; } in GetThreadOfSample()
/system/extras/simpleperf/nonlinux_support/
Dnonlinux_support.cpp23 std::vector<uint64_t> UnwindCallChain(int, const ThreadEntry&, const RegSet&, in UnwindCallChain() argument