[llvm-dev] XRay FDR mode doesn’t log main thread calls
Dean Michael Berris via llvm-dev
llvm-dev at lists.llvm.org
Mon Jun 11 17:22:40 PDT 2018
> On 9 Jun 2018, at 06:23, Henry Zhu via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
>
>
> I am initializing FDR mode and finalizing/flushing the buffers manually. XRay does not log calls from the main thread unless there is a function call after __xray_log_finalize(). This behavior is abnormal since one would expect the trace file to contain all function calls made up to the point when __xray_log_finalize() is called. To demonstrate this behavior, I have taken the test case from TestCases/Posix and modified it.
>
Yes, this is definitely a bug, but one that I thought we’ve already fixed. Can you say whether the latest in HEAD is still exhibiting the same problem?
If not, this one should be easy to reproduce and fix (with a test, upstream in particular).
If you can file a bug (as well) through https://llvm.org/bugs then Keith and I can probably track this better/easier.
>
>
>
> Is this expected behavior?
>
Definitely not expected behaviour. If you can reproduce with the latest in HEAD, then there’s definitely something for us to address (quite easily).
Cheers
-- Dean
More information about the llvm-dev
mailing list