<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 7, 2019 at 5:17 PM Dean Michael Berris <<a href="mailto:dean.berris@gmail.com">dean.berris@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jan 7, 2019 at 10:26 PM Dangeti Tharun kumar<br>
<<a href="mailto:cs15mtech11002@iith.ac.in" target="_blank">cs15mtech11002@iith.ac.in</a>> wrote:<br>
><br>
><br>
><br>
> On Mon, Jan 7, 2019 at 3:21 PM Dean Michael Berris <<a href="mailto:dean.berris@gmail.com" target="_blank">dean.berris@gmail.com</a>> wrote:<br>
>><br>
>> On Mon, Jan 7, 2019 at 8:43 PM Dangeti Tharun kumar<br>
>> <<a href="mailto:cs15mtech11002@iith.ac.in" target="_blank">cs15mtech11002@iith.ac.in</a>> wrote:<br>
>> ><br>
>> > Hi Dean,<br>
>> ><br>
>> > I have tried with -instr-map-1 and -instr-map-2, it didn't work.<br>
>> ><br>
>><br>
>> Yeah, I'm looking through the code and it looks like we're always just<br>
>> using the function id when we should be using the symbol name. Let me<br>
>> land a patch to fix this.<br>
><br>
><br>
> Thanks Dean.<br>
><br>
>> > Is there a way to find the function name from the identifier?<br>
>><br>
>> You can try this manually by using the `llvm-xray extract -symbolize`<br>
>> tool to get a YAML file that maps the function id's to symbols, but<br>
>> that's a roundabout way of doing it. Ideally the graph-diff tool<br>
>> should just do it.<br>
>><br>
> I have tried this strangely I got this error<br>
><br>
> $> llvm-xray extract -symbolize xray-log.clang-8.*<br>
><br>
> YAML:1:1: error: Got empty plain scalar<br>
> llvm-xray: Cannot extract instrumentation map from 'xray-log.clang-8.*'<br>
> Failed loading YAML document from 'xray-log.clang-8.*<br>
><br>
<br>
Sorry, that was unclear -- you can extract the instrumentation map<br>
from an XRay-instrumented binary, not the traces.<br>
<br>
> but this is working<br>
><br>
> llvm-xray convert xray-log.clang-8.* -instr_map=../avx/llvm/xray-build/bin/clang -output-format=yaml 1>out.yaml<br>
><br>
> Am I missing anything?<br>
><br>
<br>
Nope, my instructions were unclear. :)<br>
<br>
I've uploaded a patch which should make this work -- if you're able to<br>
build the tool(s) with the patch applied, then it would be great to<br>
hear your feedback:<br>
<br>
<a href="https://reviews.llvm.org/D56383" rel="noreferrer" target="_blank">https://reviews.llvm.org/D56383</a><br>
<br></blockquote><div>Thanks for your prompt response. I have applied the patch. Unfortunately, it did not solve the problem, I am still seeing function ids.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm going to need to come up with test-cases locally to ensure that<br>
this doesn't regress (and that it works as expected) but it would have<br>
to wait 'til tomorrow.<br>
<br>
Cheers<br>
<br>
-- <br>
Dean<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Regards,</div><div>DTharun</div></div></div></div></div></div></div></div></div>