This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt] Support string-based config for FDR mode
ClosedPublic

Authored by dberris on Apr 27 2018, 12:08 AM.

Details

Summary

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 D46173.

Diff Detail

Event Timeline

dberris created this revision.Apr 27 2018, 12:08 AM
kpw added a comment.May 3 2018, 4:33 PM

Can you add some Reports, which could be guarded behind sanitizer verbose, for warning messages when users do deprecated things? This looks sensible, but a bit of nagging incentives people to change.

dberris updated this revision to Diff 145147.May 3 2018, 9:36 PM
  • fixup: Rebase and address comments by kpw@

Done, thanks!

kpw accepted this revision.May 3 2018, 10:40 PM
This revision is now accepted and ready to land.May 3 2018, 10:40 PM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptMay 3 2018, 11:17 PM