[llvm-dev] Testing LLVM XRay

buddhika chamith via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 27 16:47:50 PDT 2018


Great! Now it works.

Thanks


On Mon, Aug 27, 2018 at 7:25 PM, Dean Michael Berris <dean.berris at gmail.com>
wrote:

> Hi Buddhika,
>
> On Tue, 28 Aug 2018 at 3:36 am, buddhika chamith via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> The link should be
>>
>> [1] https://llvm.org/docs/XRayExample.html#further-exploration
>>
>> On Mon, Aug 27, 2018 at 1:33 PM, buddhika chamith <
>> chamibuddhika at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to test run clang XRay tool. I was following the steps at
>>> [1]. But the log file does not seem to get generated. According to the
>>> instructions I used 'fxray-instrument' switch when compiling and then
>>> specified 'patch_premain=true' at XRAY_OPTIONS. Is there anything else that
>>> I need to do? I am on a trunk build of clang. Could that be it? I am on
>>> clang version 8.0.0 (trunk 340502).
>>>
>>
> Apologies for that, it seems the documentation is out of date. You need to
> add `xray_mode=xray-basic` to the options. That should look like:
>
> XRAY_OPTIONS="patch_premain=true:xray_mode=xray-basic"
>
> We should update the documentation with that. Note that
> llvm.org/docs/XRay.html should already have the updated instructions.
>
> Cheers
> --
> Dean
>



-- 
Research Assistant
Indiana University
Web: http://homes.soic.indiana.edu/budkahaw/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180827/49f4909a/attachment.html>


More information about the llvm-dev mailing list