#include "dd_rtl.h"
#include "sanitizer_common/sanitizer_common.h"
#include "sanitizer_common/sanitizer_placement_new.h"
#include "sanitizer_common/sanitizer_flags.h"
#include "sanitizer_common/sanitizer_flag_parser.h"
#include "sanitizer_common/sanitizer_stacktrace.h"
#include "sanitizer_common/sanitizer_stackdepot.h"
namespace __dsan {
static Context *ctx;
static u32 CurrentStackTrace(Thread *thr, uptr skip) { … }
static void PrintStackTrace(Thread *thr, u32 stk) { … }
static void ReportDeadlock(Thread *thr, DDReport *rep) { … }
Callback::Callback(Thread *thr)
: … { … }
u32 Callback::Unwind() { … }
static void InitializeFlags() { … }
void Initialize() { … }
void ThreadInit(Thread *thr) { … }
void ThreadDestroy(Thread *thr) { … }
void MutexBeforeLock(Thread *thr, uptr m, bool writelock) { … }
void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) { … }
void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) { … }
void MutexDestroy(Thread *thr, uptr m) { … }
}