llvm-project/compiler-rt/test
Dean Michael Berris e7dbebf182 [XRay][compiler-rt] XRay Flight Data Recorder Mode
Summary:
In this change we introduce the notion of a "flight data recorder" mode
for XRay logging, where XRay logs in-memory first, and write out data
on-demand as required (as opposed to the naive implementation that keeps
logging while tracing is "on"). This depends on D26232 where we
implement the core data structure for holding the buffers that threads
will be using to write out records of operation.

This implementation only currently works on x86_64 and depends heavily
on the TSC math to write out smaller records to the inmemory buffers.

Also, this implementation defines two different kinds of records with
different sizes (compared to the current naive implementation): a
MetadataRecord (16 bytes) and a FunctionRecord (8 bytes). MetadataRecord
entries are meant to write out information like the thread ID for which
the metadata record is defined for, whether the execution of a thread
moved to a different CPU, etc. while a FunctionRecord represents the
different kinds of function call entry/exit records we might encounter
in the course of a thread's execution along with a delta from the last
time the logging handler was called.

While this implementation is not exactly what is described in the
original XRay whitepaper, this one gives us an initial implementation
that we can iterate and build upon.

Reviewers: echristo, rSerge, majnemer

Subscribers: mehdi_amini, llvm-commits, mgorny

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

llvm-svn: 293015
2017-01-25 03:50:46 +00:00
..
BlocksRuntime
asan [asan] fix __sanitizer_cov_with_check to get the correct caller PC. Before this fix the code relied on the fact that the other function (__sanitizer_cov) is inlined. This was true with clang builds on x86, but not true with gcc builds on x86 and on PPC. This caused bot redness after r292862 2017-01-25 01:14:24 +00:00
builtins [test] Fix page address logic in clear_cache_test 2017-01-21 21:55:00 +00:00
cfi [cfi] Mark tests as xfailing on Darwin 2016-11-14 23:12:52 +00:00
dfsan [DFSAN] Another unstable test in AArch64 breaking bots unnecessarily 2016-12-09 19:02:04 +00:00
esan [ESan][MIPS] Adds support for MIPS64 2016-10-06 09:58:11 +00:00
interception Revert "[interception] Check for export table's size before referring to its elements." 2017-01-22 03:30:14 +00:00
lsan Revert "[lsan] Enable LSan for x86 Linux." 2017-01-23 22:52:31 +00:00
msan [msan] Intercept getutent and friends. 2016-12-15 22:00:14 +00:00
profile [PGO] Update the test cases after r291588. 2017-01-10 20:07:01 +00:00
safestack [asan] Enable -asan-use-private-alias on Darwin/Mach-O, add test for ODR false positive with LTO (compiler-rt part) 2016-09-14 14:09:18 +00:00
sanitizer_common Revert "[lsan] Enable LSan for x86 Linux." 2017-01-23 22:52:31 +00:00
scudo [scudo] Replacing std::atomic with Sanitizer's atomics 2017-01-20 18:32:18 +00:00
tsan [tsan] Enable ignore_noninstrumented_modules=1 on Darwin by default 2017-01-24 21:37:50 +00:00
ubsan [sanitizer] Add macOS minimum deployment target to all compiler invocations in lit tests 2016-11-29 19:25:53 +00:00
xray [XRay][compiler-rt] XRay Flight Data Recorder Mode 2017-01-25 03:50:46 +00:00
CMakeLists.txt [asan/win] Delay load dbghelp.dll to delay ucrtbase.dll initialization 2016-11-14 17:37:50 +00:00
lit.common.cfg [lit] Limit parallelism of sanitizer tests on Darwin [compiler-rt part, take 2] 2017-01-20 00:25:01 +00:00
lit.common.configured.in cfi: Fixes for check-cfi when configured as an external project. 2016-09-22 20:51:48 +00:00