[llvm-dev] llvm dynamic execution trace

Dean Michael Berris via llvm-dev llvm-dev at lists.llvm.org
Tue May 3 22:48:47 PDT 2016


On Wed, May 4, 2016 at 3:10 PM Ammar Naqvi via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi Dean, thank you for the response!
>
> 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.
>
> To clarify there used to exist this
> http://llvm.org/releases/1.0/docs/CommandGuide/lli.html where you could
> type "lli -trace 'filename.bc' and you would get a dump of the dynamic
> excutiion trace.
>
>   I need something like:
>  to record the execution (statement/instruction) trace of a program. For
> example, a C program is like this:
>
> 1:    sum = 0;
> 2:    for(i = 0; i < 2; i++)
> 3:        sum += i;
> 4:    printf("%d", sum);
>
>     The execution trace would be something like 1->2->3->2->3->2->4.
>
> 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).
>

Ah, that's slightly different from what XRay allows. I'll let others
respond more specifically on what you're after.

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160504/81ed9742/attachment-0001.html>


More information about the llvm-dev mailing list