profile the llvm JITed code

Hi llvm,

It is the second time I post this kind of message.

My llvm version is 3.3, can anyone tell me how to profile the JITed code using OProfile?

I build llvm with the ‘–enable-optimized --enable-debug-runtime --enable-debug-symbols --disable-assertions --with-oprofile=/usr/local/ --enable-profiling’ option, but get the ‘anon (tgid:105186 range:0x7f028c6c9000-0x7f028c748fff)’ instead of the full message about the profiling results.

I know llvm using the to communicate with OProfile daemon, so I try to use ‘ldd’ command to show the dependencies, and the outputs are:

$ ldd fibonacci
linux``-vdso``.so.1 => (0x00007fff168f4000)` => /lib64/ (0x00000031edc00000) ``` => /lib64/ (0x00000031ed800000) => /lib64/ (0x00000031ee400000)` => /lib64/ (0x00000031ef000000) ``` => /usr/local//lib/oprofile/ (0x00007ffabeaf6000) => /lib64/ (0x00000031ee000000)` => /home/admin/jianzhang.zj/gcc-4.8.2-install/lib64/ (0x00007ffabe7f2000) ``` => /home/admin/jianzhang.zj/gcc-4.8.2``-install``/lib64/ (0x00007ffabe5db000) => /lib64/ (0x00000031ed400000)` /lib64/ (0x00000031ed000000) ``` => /usr/local/lib/ (0x00007ffabe2d9000)
``` => /usr/lib/ (0x00007ffabe098000)
$ ldd ``-u fibonacci
Unused direct dependencies:

/lib64/` /lib64/ ```/lib64/

as the outputs says, is the direct dependency but unused. So the ‘anon (tgid:105186 range:0x7f028c6c9000-0x7f028c748fff)’ message show in the profiling result.

Can somebody help me with this issue?

Jian Zhang.