[all-commits] [llvm/llvm-project] 96dd39: [XRay] Add `__xray_default_options` to specify bui...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Thu Nov 28 22:49:18 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96dd39c575be64896995e08881b9bc27688ce5d1
      https://github.com/llvm/llvm-project/commit/96dd39c575be64896995e08881b9bc27688ce5d1
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2024-11-28 (Thu, 28 Nov 2024)

  Changed paths:
    M compiler-rt/lib/xray/weak_symbols.txt
    M compiler-rt/lib/xray/xray_flags.cpp
    M compiler-rt/lib/xray/xray_flags.h
    A compiler-rt/test/xray/TestCases/Posix/default-options.cpp
    M llvm/docs/XRay.rst

  Log Message:
  -----------
  [XRay] Add `__xray_default_options` to specify build-time defined options (#117921)

Similar to `__asan_default_options`, users can specify default options
upon building the instrumented binaries by providing their own
definition of `__xray_default_options` which returns the option strings.

This is useful in cases where setting the `XRAY_OPTIONS` environment
variable might be difficult. Plus, it's a convenient way to populate
XRay options when you always want the instrumentation to be enabled.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list