[PATCH] D46246: [XRay][compiler-rt] Support string-based config for Basic mode.

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 30 00:57:37 PDT 2018


dberris created this revision.
dberris added reviewers: echristo, kpw, pelikan, eizan.
Herald added a subscriber: mgorny.

This addresses http://llvm.org/PR36790.

This change allows the XRay Basic Mode implementation to use the
string-based initialization routine provided through
`__xray_log_init_mode(...)`. In the process, we've also deprecated some
flags defined for the `XRAY_OPTIONS` environment variable.

We then introduce another environment variable that can control the XRay
Basic Mode implementation through `XRAY_BASIC_OPTIONS`.

We also rename files from `xray_inmemory_log` to `xray_basic_logging` to
be more in line with the mode implementation.

Depends on https://reviews.llvm.org/D46174.


https://reviews.llvm.org/D46246

Files:
  compiler-rt/lib/xray/CMakeLists.txt
  compiler-rt/lib/xray/xray_basic_flags.cc
  compiler-rt/lib/xray/xray_basic_flags.h
  compiler-rt/lib/xray/xray_basic_flags.inc
  compiler-rt/lib/xray/xray_basic_logging.cc
  compiler-rt/lib/xray/xray_basic_logging.h
  compiler-rt/lib/xray/xray_flags.inc
  compiler-rt/lib/xray/xray_inmemory_log.cc
  compiler-rt/lib/xray/xray_inmemory_log.h
  compiler-rt/test/xray/TestCases/Posix/basic-filtering.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46246.144509.patch
Type: text/x-patch
Size: 13201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180430/0c3c59a0/attachment.bin>


More information about the llvm-commits mailing list