1 //===-- tsan_symbolize.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of ThreadSanitizer (TSan), a race detector.
12 //===----------------------------------------------------------------------===//
13 #ifndef TSAN_SYMBOLIZE_H
14 #define TSAN_SYMBOLIZE_H
16 #include "tsan_defs.h"
17 #include "tsan_report.h"
21 // Denotes fake PC values that come from JIT/JAVA/etc.
22 // For such PC values __tsan_symbolize_external() will be called.
23 const uptr kExternalPCBit = 1ULL << 60;
25 void EnterSymbolizer();
26 void ExitSymbolizer();
27 SymbolizedStack *SymbolizeCode(uptr addr);
28 ReportLocation *SymbolizeData(uptr addr);
29 void SymbolizeFlush();
31 ReportStack *NewReportStackEntry(uptr addr);
35 #endif // TSAN_SYMBOLIZE_H