llvm-project/compiler-rt/test
Dean Michael Berris 1e3feb49e3 [XRay][compiler-rt] FDR Mode: Allow multiple runs
Summary:
Fix a bug in FDR mode which didn't allow for re-initialising the logging
in the same process. This change ensures that:

- When we flush the FDR mode logging, that the state of the logging
  implementation is `XRAY_LOG_UNINITIALIZED`.

- Fix up the thread-local initialisation to use aligned storage and
  `pthread_getspecific` as well as `pthread_setspecific` for the
  thread-specific data.

- Actually use the pointer provided to the thread-exit cleanup handling,
  instead of assuming that the thread has thread-local data associated
  with it, and reaching at thread-exit time.

In this change we also have an explicit test for two consecutive
sessions for FDR mode tracing, and ensuring both sessions succeed.

Reviewers: kpw, eizan

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D49359

llvm-svn: 337341
2018-07-18 01:31:30 +00:00
..
BlocksRuntime
asan Limit ASan non-executable-pc test case to x86 bots 2018-07-10 19:34:46 +00:00
builtins Support for multiarch runtimes layout 2018-06-28 03:11:52 +00:00
cfi [cfi] Use __builtin version of __clear_cache. 2018-06-29 17:22:58 +00:00
dfsan Add weak definitions of trace-cmp hooks to dfsan 2018-06-01 21:59:25 +00:00
esan
fuzzer [libFuzzer] Mutation tracking and logging implemented. 2018-07-17 20:37:40 +00:00
hwasan [HWASan] Disable allocator_returns_null.cc test on Android. 2018-06-08 00:56:49 +00:00
interception
lsan [Sanitizers] Move allocator_returns_null.cc test to common. 2018-06-11 19:45:59 +00:00
msan [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
profile [gcov] Add a test showing differences in line counts when building with or without exceptions enabled. 2018-07-16 14:40:33 +00:00
safestack
sanitizer_common [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
scudo [scudo] Use mkdir -p when creating directories for a test 2018-07-10 13:59:59 +00:00
shadowcallstack [scs] Disable negative test in shadowcallstack. 2018-06-29 15:16:45 +00:00
tsan Remove `tsan/Darwin/gcd-after-null.mm` test. 2018-07-13 07:37:01 +00:00
ubsan [UBSan] Followup for silence_unsigned_overflow flag to handle negate overflows. 2018-07-13 22:49:06 +00:00
ubsan_minimal [UBsan] minimal unit tests removing OpenBSD spacial case 2018-06-28 21:10:52 +00:00
xray [XRay][compiler-rt] FDR Mode: Allow multiple runs 2018-07-18 01:31:30 +00:00
CMakeLists.txt [fuzzer] Don't run tests on Android. 2018-06-28 22:16:59 +00:00
lit.common.cfg Add lowercase OS name feature 2018-07-10 02:02:21 +00:00
lit.common.configured.in Support for multiarch runtimes layout 2018-06-28 03:11:52 +00:00