summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-07-10 21:08:20 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-07-10 21:08:20 +0000
commitbf3d6ba5570209fb859dcaaab1c8596f7c5e6f3b (patch)
treef89d75ae3a946c62f2051b113a5a1741449be244 /llvm/tools
parent25e7f91559439e5f286aa71729fbf11bdf8a4c2f (diff)
downloadbcm5719-llvm-bf3d6ba5570209fb859dcaaab1c8596f7c5e6f3b.tar.gz
bcm5719-llvm-bf3d6ba5570209fb859dcaaab1c8596f7c5e6f3b.zip
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 llvm-svn: 75279
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/lli/lli.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 40b858e9d1a..adf6c1c9709 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -156,6 +156,7 @@ int main(int argc, char **argv, char * const *envp) {
}
EE->RegisterJITEventListener(createMacOSJITEventListener());
+ EE->RegisterJITEventListener(createOProfileJITEventListener());
if (NoLazyCompilation)
EE->DisableLazyCompilation();
OpenPOWER on IntegriCloud