llvm-project/compiler-rt/test
Dean Michael Berris 895171e6ee [XRay] [compiler-rt] Unwriting FDR mode buffers when functions are short.
Summary:
"short" is defined as an xray flag, and buffer rewinding happens for both exits
 and tail exits.

 I've made the choice to seek backwards finding pairs of FunctionEntry, TailExit
 record pairs and erasing them if the FunctionEntry occurred before exit from the
 currently exiting function. This is a compromise so that we don't skip logging
 tail calls if the function that they call into takes longer our duration.

 This works by counting the consecutive function and function entry, tail exit
 pairs that proceed the current point in the buffer. The buffer is rewound to
 check whether these entry points happened recently enough to be erased.

 It is still possible we will omit them if they call into a child function that
 is not instrumented which calls a fast grandchild that is instrumented before
 doing other processing.

Reviewers: pelikan, dberris

Reviewed By: dberris

Subscribers: llvm-commits

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

llvm-svn: 299629
2017-04-06 07:14:43 +00:00
..
BlocksRuntime
asan Simplify test a bit. 2017-04-05 20:26:33 +00:00
builtins [Builtins] Mark mulsc3_test as UNSUPPORTED for armhf; NFC 2017-03-29 16:59:09 +00:00
cfi Fix sanitizer tests with LLVM_TOOL_LLD_BUILD=OFF. 2017-03-25 00:42:25 +00:00
dfsan [DFSAN] Another unstable test in AArch64 breaking bots unnecessarily 2016-12-09 19:02:04 +00:00
esan Remove unused variable. 2017-03-31 12:07:58 +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 Disable use_tls_dynamic on 32-bit linux 2017-03-27 14:06:49 +00:00
msan [sanitizer] Move fread and fwrite interceptors to sanitizer_common 2017-03-30 07:25:33 +00:00
profile Revert "[PGO] Suspend SIGKILL for PR_SET_PDEATHSIG in profile-write" 2017-02-20 15:03:12 +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 Bypass potential libc's sysconf interceptors 2017-03-23 15:57:58 +00:00
scudo [scudo] Add test exercising pthreads 2017-03-23 19:21:10 +00:00
tsan [tsan] Add interceptor for xpc_connection_cancel to avoid false positives 2017-03-30 15:48:25 +00:00
ubsan Make nullability test pass on Windows, which evaluates parameters right-to-left. 2017-03-22 19:15:24 +00:00
xray [XRay] [compiler-rt] Unwriting FDR mode buffers when functions are short. 2017-04-06 07:14:43 +00:00
CMakeLists.txt Reapply r297382: "[compiler-rt][builtins] Add __isOSVersionAtLeast()" 2017-03-09 17:02:16 +00:00
lit.common.cfg Add LIT_USE_INTERNAL_SHELL to compiler-rt tests. 2017-03-30 13:33:22 +00:00
lit.common.configured.in Fix sanitizer tests with LLVM_TOOL_LLD_BUILD=OFF. 2017-03-25 00:42:25 +00:00