tsan: add new trace
authorDmitry Vyukov <dvyukov@google.com>
Thu, 5 Aug 2021 15:18:17 +0000 (17:18 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 16 Aug 2021 08:24:11 +0000 (10:24 +0200)
commitc97318996fc1dbc04da4a00f931943a5890b2dc2
tree415dd775b9f26f741da3bb2159d1c7baf5e98038
parentf7347dfa03e55ca3837d05160b25a5e9fc1794f7
tsan: add new trace

Add structures for the new trace format,
functions that serialize and add events to the trace
and trace replaying logic.

Differential Revision: https://reviews.llvm.org/D107911
compiler-rt/lib/tsan/rtl/tsan_defs.h
compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
compiler-rt/lib/tsan/rtl/tsan_rtl.h
compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
compiler-rt/lib/tsan/rtl/tsan_trace.h
compiler-rt/lib/tsan/tests/unit/CMakeLists.txt
compiler-rt/lib/tsan/tests/unit/tsan_trace_test.cpp [new file with mode: 0644]