summaryrefslogtreecommitdiff
path: root/test/profile/Inputs/instrprof-dlopen-main.c
AgeCommit message (Collapse)Author
2014-05-18profile: add logging on failureSaleem Abdulrasool
Add logging to report any failures that may occur on calls to libdl. Without this, it is difficult to identify the actual problem if the test fails. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209097 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