tsan: enabled report suppression for signal-unsafe reports
llvm-svn: 156765
This commit is contained in:
parent
d004b99cc6
commit
665ce2a2f4
|
@ -25,7 +25,7 @@ static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
|
||||||
stack.ObtainCurrent(thr, pc);
|
stack.ObtainCurrent(thr, pc);
|
||||||
ScopedReport rep(ReportTypeSignalUnsafe);
|
ScopedReport rep(ReportTypeSignalUnsafe);
|
||||||
rep.AddStack(&stack);
|
rep.AddStack(&stack);
|
||||||
OutputReport(rep);
|
OutputReport(rep, rep.GetReport()->stacks[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *user_alloc(ThreadState *thr, uptr pc, uptr sz) {
|
void *user_alloc(ThreadState *thr, uptr pc, uptr sz) {
|
||||||
|
|
|
@ -371,7 +371,8 @@ void InitializeDynamicAnnotations();
|
||||||
void Die() NORETURN;
|
void Die() NORETURN;
|
||||||
|
|
||||||
void ReportRace(ThreadState *thr);
|
void ReportRace(ThreadState *thr);
|
||||||
bool OutputReport(const ScopedReport &srep, ReportStack *suppress_stack = 0);
|
bool OutputReport(const ScopedReport &srep,
|
||||||
|
const ReportStack *suppress_stack = 0);
|
||||||
bool IsExpectedReport(uptr addr, uptr size);
|
bool IsExpectedReport(uptr addr, uptr size);
|
||||||
|
|
||||||
#if defined(TSAN_DEBUG_OUTPUT) && TSAN_DEBUG_OUTPUT >= 1
|
#if defined(TSAN_DEBUG_OUTPUT) && TSAN_DEBUG_OUTPUT >= 1
|
||||||
|
|
|
@ -273,7 +273,7 @@ static void AddRacyStacks(ThreadState *thr, const StackTrace (&traces)[2],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OutputReport(const ScopedReport &srep, ReportStack *suppress_stack) {
|
bool OutputReport(const ScopedReport &srep, const ReportStack *suppress_stack) {
|
||||||
const ReportDesc *rep = srep.GetReport();
|
const ReportDesc *rep = srep.GetReport();
|
||||||
bool suppressed = IsSuppressed(rep->typ, suppress_stack);
|
bool suppressed = IsSuppressed(rep->typ, suppress_stack);
|
||||||
suppressed = OnReport(rep, suppressed);
|
suppressed = OnReport(rep, suppressed);
|
||||||
|
|
Loading…
Reference in New Issue