Home
last modified time | relevance | path

Searched refs:ThreadContextBase (Results 1 – 13 of 13) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_thread_registry.cc19 ThreadContextBase::ThreadContextBase(u32 tid) in ThreadContextBase() function in __sanitizer::ThreadContextBase
26 ThreadContextBase::~ThreadContextBase() { in ~ThreadContextBase()
31 void ThreadContextBase::SetName(const char *new_name) { in SetName()
39 void ThreadContextBase::SetDead() { in SetDead()
47 void ThreadContextBase::SetJoined(void *arg) { in SetJoined()
56 void ThreadContextBase::SetFinished() { in SetFinished()
62 void ThreadContextBase::SetStarted(uptr _os_id, void *arg) { in SetStarted()
68 void ThreadContextBase::SetCreated(uptr _user_id, u64 _unique_id, in SetCreated()
80 void ThreadContextBase::Reset() { in Reset()
102 threads_ = (ThreadContextBase **)MmapOrDie(max_threads_ * sizeof(threads_[0]), in ThreadRegistry()
[all …]
Dsanitizer_thread_registry.h34 class ThreadContextBase {
36 explicit ThreadContextBase(u32 tid);
37 ~ThreadContextBase(); // Should never be called.
50 ThreadContextBase *next; // For storing thread contexts in a list.
73 typedef ThreadContextBase* (*ThreadContextFactory)(u32 tid);
89 ThreadContextBase *GetThreadLocked(u32 tid) { in GetThreadLocked()
96 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg);
101 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg);
107 ThreadContextBase *FindThreadContextLocked(FindThreadCallback cb,
109 ThreadContextBase *FindThreadContextByOsIDLocked(uptr os_id);
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_thread_registry_test.cc27 static ThreadContextBase *GetThreadContext(u32 tid) { in GetThreadContext()
52 static bool HasName(ThreadContextBase *tctx, void *arg) { in HasName()
57 static bool HasUid(ThreadContextBase *tctx, void *arg) { in HasUid()
62 static void MarkUidAsPresent(ThreadContextBase *tctx, void *arg) { in MarkUidAsPresent()
133 ThreadContextBase *main_thread = registry->GetThreadLocked(0); in TestRegistry()
141 ThreadRegistry quarantine_registry(GetThreadContext<ThreadContextBase>, in TEST()
146 ThreadRegistry no_quarantine_registry(GetThreadContext<ThreadContextBase>, in TEST()
166 class TestThreadContext : public ThreadContextBase {
168 explicit TestThreadContext(int tid) : ThreadContextBase(tid) {} in TestThreadContext()
/external/compiler-rt/lib/lsan/
Dlsan_thread.cc29 static ThreadContextBase *CreateThreadContext(u32 tid) { in CreateThreadContext()
52 : ThreadContextBase(tid), in ThreadContext()
109 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid()
Dlsan_thread.h22 class ThreadContext : public ThreadContextBase {
/external/compiler-rt/lib/asan/
Dasan_thread.h34 class AsanThreadContext : public ThreadContextBase {
37 : ThreadContextBase(tid), in AsanThreadContext()
Dasan_thread.cc50 static ThreadContextBase *GetAsanThreadContext(u32 tid) { in GetAsanThreadContext()
239 static bool ThreadStackContainsAddress(ThreadContextBase *tctx_base, in ThreadStackContainsAddress()
Dasan_stats.cc79 static void MergeThreadStats(ThreadContextBase *tctx_base, void *arg) { in MergeThreadStats()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc26 : ThreadContextBase(tid) in ThreadContext()
152 static void MaybeReportThreadLeak(ThreadContextBase *tctx_base, void *arg) { in MaybeReportThreadLeak()
285 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid()
Dtsan_rtl_mutex.cc365 static void UpdateClockCallback(ThreadContextBase *tctx_base, void *arg) { in UpdateClockCallback()
408 static void UpdateSleepClockCallback(ThreadContextBase *tctx_base, void *arg) { in UpdateSleepClockCallback()
Dtsan_rtl.h405 class ThreadContext : public ThreadContextBase {
Dtsan_rtl.cc67 static ThreadContextBase *CreateThreadContext(u32 tid) { in CreateThreadContext()
Dtsan_rtl_report.cc234 static bool IsInStackOrTls(ThreadContextBase *tctx_base, void *arg) { in IsInStackOrTls()