diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-07-10 21:08:20 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-07-10 21:08:20 +0000 |
commit | 8f6d9a729e4f73c25c3dadaf2af01e87b71c2288 (patch) | |
tree | cc36f28605ec5b69c13d845ae6b3d555b5f44fe4 /lib/ExecutionEngine/JIT/CMakeLists.txt | |
parent | f1d6bd5cbe6ae4a9327b159dcbc0810f0affd0fb (diff) | |
download | external_llvm-8f6d9a729e4f73c25c3dadaf2af01e87b71c2288.zip external_llvm-8f6d9a729e4f73c25c3dadaf2af01e87b71c2288.tar.gz external_llvm-8f6d9a729e4f73c25c3dadaf2af01e87b71c2288.tar.bz2 |
Add a --with-oprofile flag to configure, which uses OProfile's agent
library to tell it the addresses of JITted functions. For a
particular program, this changes the opreport -l output from:
samples % image name symbol name
48182 98.9729 anon (tgid:19412 range:0x7f12ccaab000-0x7f12cdaab000) anon (tgid:19412 range:0x7f12ccaab000-0x7f12cdaab000)
11 0.0226 libstdc++.so.6.0.9 /usr/lib/libstdc++.so.6.0.9
to:
samples % image name symbol name
24565 60.7308 19814.jo fib_left
15365 37.9861 19814.jo fib_right
22 0.0544 ld-2.7.so do_lookup_x
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/CMakeLists.txt')
-rw-r--r-- | lib/ExecutionEngine/JIT/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/CMakeLists.txt b/lib/ExecutionEngine/JIT/CMakeLists.txt index bf915f7..7f15b4c 100644 --- a/lib/ExecutionEngine/JIT/CMakeLists.txt +++ b/lib/ExecutionEngine/JIT/CMakeLists.txt @@ -8,5 +8,6 @@ add_llvm_library(LLVMJIT JITEmitter.cpp JITMemoryManager.cpp MacOSJITEventListener.cpp + OProfileJITEventListener.cpp TargetSelect.cpp ) |