[PATCH] D46174: [XRay][compiler-rt] Support string-based config for FDR mode

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 00:08:16 PDT 2018


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

In this chage we add support for the string-based configuration
mechanism for configuring FDR mode.

We deprecate most of the `xray_fdr_log_*` flags that are set with the
`XRAY_OPTIONS` environment variable. Instead we make the FDR
implementation take defaults from the `XRAY_FDR_OPTIONS` environment
variable, and use the flags defined in `xray_fdr_flags.{h,cc,inc}` for
the options we support.

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

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


https://reviews.llvm.org/D46174

Files:
  compiler-rt/lib/xray/CMakeLists.txt
  compiler-rt/lib/xray/xray_fdr_flags.cc
  compiler-rt/lib/xray/xray_fdr_flags.h
  compiler-rt/lib/xray/xray_fdr_flags.inc
  compiler-rt/lib/xray/xray_fdr_logging.cc
  compiler-rt/lib/xray/xray_flags.cc
  compiler-rt/lib/xray/xray_flags.h
  compiler-rt/lib/xray/xray_flags.inc
  compiler-rt/test/xray/TestCases/Posix/fdr-mode.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46174.144286.patch
Type: text/x-patch
Size: 17216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/be2ee198/attachment.bin>


More information about the llvm-commits mailing list