[LLVMdev] How to get trace using llvm?

Tushar Mehta tushar at comp.nus.edu.sg
Thu Jan 26 00:05:52 PST 2012


Hello,

I am trying to get the trace by running my sample program using llvm. I
was referring following link for lli:
http://llvm.org/releases/1.0/docs/CommandGuide/lli.html

after that I installed llvm and llvm-gcc. Here is the version detail:

tushar at tushar-mehta:~/NUS/os_project/tryout$ lli -version
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.8 (Ubuntu 2.8-0ubuntu1)
  Optimized build.
  Built Oct  6 2010 (13:24:23).
  Host: x86_64-pc-linux-gnu
  Host CPU: i686

  Registered Targets:
    x86    - 32-bit X86: Pentium-Pro and above
    x86-64 - 64-bit X86: EM64T and AMD64

I thought I will use lli with -trace option. But it is not available with it.

Any idea how I can get dynamic trace of the sample application using llvm?

My Machine detail:

tushar at tushar-mehta:~/NUS/os_project/tryout$ uname -a
Linux tushar-mehta 2.6.35-32-generic #64-Ubuntu SMP Tue Jan 3 00:47:07 UTC
2012 x86_64 GNU/Linux

Please let me know if you need any other details of my machine environment.

-- 
Tushar Mehta
School of Computing,
National University of Singapore



More information about the llvm-dev mailing list