How to get trace using llvm?

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@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@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.

Dear Tushar,

What sort of trace do you need? We have a dynamic tracing tool for an older version of LLVM that allows one to do dynamic backwards slicing. Would this tool serve your purpose? If so, I believe we can send you a copy (we have plans to release the code in the LLVM SVN repository but have not had the resources to do it yet).

-- John T.