[PATCH] D51606: [XRay] Remove the deprecated __xray_log_init API

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 19 17:02:15 PDT 2018


dberris added a comment.

In https://reviews.llvm.org/D51606#1239847, @vsapsai wrote:

> I have published https://reviews.llvm.org/D52278 for disabling the test on Darwin. So far my investigation shows that `__xray_log_select_mode("xray-fdr")` returns 2 (aka `XRAY_MODE_NOT_FOUND`) and that's why we are calling `std::abort`.
>
>   if (__xray_log_select_mode("xray-fdr") !=
>       XRayLogRegisterStatus::XRAY_REGISTRATION_OK)
>     std::abort();
>   
>
> Any advices on how to troubleshoot this situation? I tried `XRAY_OPTIONS="verbosity=1"` and `XRAY_FDR_OPTIONS="verbosity=1"` but there is no extra logging. I am using clang version 8.0.0 (trunk 342513) and it has libclang_rt.xray-basic_osx.a, libclang_rt.xray-fdr_osx.a, libclang_rt.xray-profiling_osx.a, libclang_rt.xray_osx.a.


There won't be much to log if we don't find the mode available for selection, unfortunately.

> I have a smallish repro but I need to clean it up. Writing this I realized that in that repro we are using pieces of host compiler, not compiler-under-test (`-isysroot`, `-B`). Depending on the time FDR mode was added, host compiler might not have support for it.

That would do it.

I don't know whether @devnexen has done any testing with the test-suite, but I'm confident that at least the compiler-rt tests for XRay don't get run on macOS yet. There was some effort to make that work and be properly supported but that work has stalled and I've not gotten back to it myself.


Repository:
  rL LLVM

https://reviews.llvm.org/D51606





More information about the llvm-commits mailing list