summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-dlopen.test
AgeCommit message (Collapse)Author
2014-10-07Run profile tests on FreeBSDEd Maste
FreeBSD does not have libdl, so set it via lit.cfg instead of the test input, as with asan. Also remove it from Darwin test runs - it's not necessary, but harmless there. Add FreeBSD to the list of hosts to test. Differential Revision: http://reviews.llvm.org/D5650 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219227 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-18profile: adjust flags for libdlSaleem Abdulrasool
dlopen expects that the flags contains RTLD_LAZY or RTLD_NOW. RTLD_LAZY will resolve the symbol on first use, and is generally preferred due to efficiency. Add this to fix the test failure on the build bots. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209098 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-18profile: explicitly link against libdlSaleem Abdulrasool
Add an explicit link against libdl. libdl may not be indirectly pulled on some Linux hosts. Explicitly link against it. This should hopefully improve the state of the build bots. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209096 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-17InstrProf: Support profiling dlopen'd shared librariesDuncan P. N. Exon Smith
Shared objects are hard. After this commit, we do the right thing when profiling two separate shared objects that have been dlopen'd with `RTLD_LOCAL`, when the main executable is *not* being profiled. This mainly simplifies the writer logic. - At initialization, determine the output filename and truncate the file. Depending on whether shared objects can see each other, this may happen multiple times. - At exit, each executable writes its own profile in append mode. <rdar://problem/16918688> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209053 91177308-0d34-0410-b5e6-96231b3b80d8