teak-llvm/compiler-rt/lib/xray/tests/unit
Dean Michael Berris abe04e3295 [XRay][compiler-rt] XRay Buffer Queue
This implements a simple buffer queue to manage a pre-allocated queue of
fixed-sized buffers to hold XRay records. We need this to support
Flight Data Recorder (FDR) mode. We also implement this as a sub-library
first to allow for development before actually using it in an
implementation.

Some important properties of the buffer queue:

- Thread-safe enqueueing/dequeueing of fixed-size buffers.
- Pre-allocation of buffers at construction.

This is a re-roll of the previous attempt to submit, because it caused
failures in arm and aarch64.

Reviewers: majnemer, echristo, rSerge

Subscribers: tberghammer, danalbert, srhines, modocache, mehdi_amini, mgorny, llvm-commits

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

llvm-svn: 288775
2016-12-06 06:24:08 +00:00
..
buffer_queue_test.cc [XRay][compiler-rt] XRay Buffer Queue 2016-12-06 06:24:08 +00:00
CMakeLists.txt [XRay][compiler-rt] XRay Buffer Queue 2016-12-06 06:24:08 +00:00
xray_unit_test_main.cc [XRay][compiler-rt] XRay Buffer Queue 2016-12-06 06:24:08 +00:00