[llvm-bugs] [Bug 37066] New: Allow selecting which XRay modes to link through flags

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 9 18:01:10 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37066

            Bug ID: 37066
           Summary: Allow selecting which XRay modes to link through flags
           Product: XRay
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang
          Assignee: dberris at google.com
          Reporter: dberris at google.com
                CC: llvm-bugs at lists.llvm.org

When building with the default XRay runtime, we're packaging all known
implementations that are part of the compiler-rt XRay runtime. While this is
convenient, there are environments where we might want to not actually link any
of these implementations due to a number of concerns (code size increase due to
unused modes, tighter control of dependencies that make it into binaries as
XRay evolves, etc.).

The suggestion is to add a clang flag `-fxray-modes=` which accepts a
comma-separated list of modes, and simultaneously add individual link targets
in compiler-rt's xray implementation to build different archives for those
modes. This effectively decouples the XRay modes into self-contained archives.

It also provides an additional means of distributing platform-specific or
custom modes that build upon the XRay framework.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180410/3cdffee4/attachment.html>


More information about the llvm-bugs mailing list