From 8b987788165d15b1c5980751392c179defa86ab7 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 29 Mar 2017 05:19:24 +0000 Subject: [XRay][compiler-rt] Add an end-to-end test for FDR Logging Summary: This change exercises the end-to-end functionality defined in the FDR logging implementation. We also prepare for being able to run traces generated by the FDR logging implementation from being analysed with the llvm-xray command that comes with the LLVM distribution. This also unblocks D31385, D31384, and D31345. Reviewers: kpw, pelikan Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D31452 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298977 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/CMakeLists.txt | 3 ++- include/xray/xray_log_interface.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 6104aded2..3d6c96be9 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -12,7 +12,8 @@ set(SANITIZER_HEADERS sanitizer/tsan_interface_atomic.h) set(XRAY_HEADERS - xray/xray_interface.h) + xray/xray_interface.h + xray/xray_log_interface.h) set(COMPILER_RT_HEADERS ${SANITIZER_HEADERS} diff --git a/include/xray/xray_log_interface.h b/include/xray/xray_log_interface.h index f98b33110..a8709c3a7 100644 --- a/include/xray/xray_log_interface.h +++ b/include/xray/xray_log_interface.h @@ -48,4 +48,13 @@ XRayLogFlushStatus __xray_log_flushLog(); } // extern "C" +namespace __xray { +// Options used by the LLVM XRay FDR implementation. +struct FDRLoggingOptions { + bool ReportErrors = false; + int Fd = -1; +}; + +} // namespace __xray + #endif // XRAY_XRAY_LOG_INTERFACE_H -- cgit v1.2.3