<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, May 4, 2016 at 3:10 PM Ammar Naqvi via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hi Dean, thank you for the response!</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">I'm a newbie to LLVM, a student working on an LLVM project so I'm not quite sure of what you're suggesting, please excuse my naivety.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">To clarify there used to exist this </span><a href="http://llvm.org/releases/1.0/docs/CommandGuide/lli.html" style="font-size:12.8px" target="_blank">http://llvm.org/releases/1.0/docs/CommandGuide/lli.html</a><span style="font-size:12.8px"> where you could type "lli -trace 'filename.bc' and you would get a dump of the dynamic excutiion trace.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">  I need something like:</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px"> to record the execution (statement/instruction) trace of a program. For example, a C program is like this:</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px"><br></div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">1:    sum = 0;</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">2:    for(i = 0; i < 2; i++)</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">3:        sum += i;</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">4:    printf("%d", sum);</div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px"><br></div><div style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0);font-family:arial;font-size:14px;line-height:23.8px">    The execution trace would be something like 1->2->3->2->3->2->4.<br><br>Is there some way of achieving this, this was possible in previous verions of LLVM <2.6 i believe; I need guidance of replicating this on the newer version(using 3.8).</div></div></blockquote><div><br></div><div>Ah, that's slightly different from what XRay allows. I'll let others respond more specifically on what you're after.</div><div><br></div><div>Cheers</div></div></div>