summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfiling.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfiling.h')
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h
index 3778a88893e..7aac3b4c29c 100644
--- a/compiler-rt/lib/profile/InstrProfiling.h
+++ b/compiler-rt/lib/profile/InstrProfiling.h
@@ -27,7 +27,6 @@ typedef uint32_t uintptr_t;
#endif /* defined(__FreeBSD__) && defined(__i386__) */
-#define PROFILE_HEADER_SIZE 7
typedef struct __llvm_profile_data {
const uint32_t NameSize;
@@ -37,6 +36,17 @@ typedef struct __llvm_profile_data {
uint64_t *const Counters;
} __llvm_profile_data;
+typedef struct __llvm_profile_header {
+ uint64_t Magic;
+ uint64_t Version;
+ uint64_t DataSize;
+ uint64_t CountersSize;
+ uint64_t NamesSize;
+ uint64_t CountersDelta;
+ uint64_t NamesDelta;
+} __llvm_profile_header;
+
+
/*!
* \brief Get required size for profile buffer.
*/
OpenPOWER on IntegriCloud