summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingInternal.h
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-06-08 23:43:56 +0000
committerXinliang David Li <davidxl@google.com>2016-06-08 23:43:56 +0000
commit8be0a4ba49d80b27d9a1e3906bef25f674f1c195 (patch)
tree8272179a1ea12f96e1f507a4bddbcd1a86774421 /lib/profile/InstrProfilingInternal.h
parentef5e5ab4ba851cacd6b4cbf3b83a27373e62badb (diff)
[profile] in-process merging support part-3
Differential Revision: http://reviews.llvm.org/D21056 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingInternal.h')
-rw-r--r--lib/profile/InstrProfilingInternal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/profile/InstrProfilingInternal.h b/lib/profile/InstrProfilingInternal.h
index 47f90ee3e..bcbe29a03 100644
--- a/lib/profile/InstrProfilingInternal.h
+++ b/lib/profile/InstrProfilingInternal.h
@@ -156,6 +156,13 @@ VPDataReaderType *lprofGetVPDataReader();
void lprofSetMaxValsPerSite(uint32_t MaxVals);
void lprofSetupValueProfiler();
+/* Return the profile header 'signature' value associated with the current
+ * executable or shared library. The signature value can be used to for
+ * a profile name that is unique to this load module so that it does not
+ * collide with profiles from other binaries. It also allows shared libraries
+ * to dump merged profile data into its own profile file. */
+uint64_t lprofGetLoadModuleSignature();
+
COMPILER_RT_VISIBILITY extern char *(*GetEnvHook)(const char *);
COMPILER_RT_VISIBILITY extern void (*FreeHook)(void *);
COMPILER_RT_VISIBILITY extern uint8_t *DynamicBufferIOBuffer;