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.
74 typedef ThreadContextBase* (*ThreadContextFactory)(u32 tid);
91 ThreadContextBase *GetThreadLocked(u32 tid) { in GetThreadLocked()
98 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg);
103 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg);
109 ThreadContextBase *FindThreadContextLocked(FindThreadCallback cb,
111 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.cc30 static ThreadContextBase *CreateThreadContext(u32 tid) { in CreateThreadContext()
53 : ThreadContextBase(tid), in ThreadContext()
115 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid()
Dlsan_thread.h26 class ThreadContext : public ThreadContextBase {
/external/compiler-rt/lib/asan/
Dasan_thread.h39 class AsanThreadContext : public ThreadContextBase {
42 : ThreadContextBase(tid), announced(false), in AsanThreadContext()
Dasan_thread.cc55 static ThreadContextBase *GetAsanThreadContext(u32 tid) { in GetAsanThreadContext()
326 static bool ThreadStackContainsAddress(ThreadContextBase *tctx_base, in ThreadStackContainsAddress()
Dasan_stats.cc75 static void MergeThreadStats(ThreadContextBase *tctx_base, void *arg) { in MergeThreadStats()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc26 : ThreadContextBase(tid) in ThreadContext()
151 static void MaybeReportThreadLeak(ThreadContextBase *tctx_base, void *arg) { in MaybeReportThreadLeak()
288 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid()
Dtsan_rtl_mutex.cc373 static void UpdateClockCallback(ThreadContextBase *tctx_base, void *arg) { in UpdateClockCallback()
416 static void UpdateSleepClockCallback(ThreadContextBase *tctx_base, void *arg) { in UpdateSleepClockCallback()
Dtsan_rtl_report.cc208 static bool FindThreadByUidLockedCallback(ThreadContextBase *tctx, void *arg) { in FindThreadByUidLockedCallback()
226 static bool IsInStackOrTls(ThreadContextBase *tctx_base, void *arg) { in IsInStackOrTls()
Dtsan_rtl.h460 class ThreadContext : public ThreadContextBase {
Dtsan_rtl.cc68 static ThreadContextBase *CreateThreadContext(u32 tid) { in CreateThreadContext()