[InstrProfData] Bump the raw profile version to 8
This is to account for the change that made CountersPtr in __profd_
relative which landed in a1532ed275
.
That change hasn't updated the raw profile version, and while the
profile layout stayed the same, profiles generated by tip-of-tree
LLVM are incompatible with 13.x tooling.
Differential Revision: https://reviews.llvm.org/D111123
This commit is contained in:
parent
0c14e279c7
commit
24c615fa6b
|
@ -645,7 +645,7 @@ serializeValueProfDataFrom(ValueProfRecordClosure *Closure,
|
|||
(uint64_t)'f' << 16 | (uint64_t)'R' << 8 | (uint64_t)129
|
||||
|
||||
/* Raw profile format version (start from 1). */
|
||||
#define INSTR_PROF_RAW_VERSION 7
|
||||
#define INSTR_PROF_RAW_VERSION 8
|
||||
/* Indexed profile format version (start from 1). */
|
||||
#define INSTR_PROF_INDEX_VERSION 7
|
||||
/* Coverage mapping format version (start from 0). */
|
||||
|
|
|
@ -1105,6 +1105,7 @@ namespace RawInstrProf {
|
|||
// sensitive records.
|
||||
// Version 6: Added binary id.
|
||||
// Version 7: Reorder binary id and include version in signature.
|
||||
// Version 8: Use relative counter pointer.
|
||||
const uint64_t Version = INSTR_PROF_RAW_VERSION;
|
||||
|
||||
template <class IntPtrT> inline uint64_t getMagic();
|
||||
|
|
|
@ -645,7 +645,7 @@ serializeValueProfDataFrom(ValueProfRecordClosure *Closure,
|
|||
(uint64_t)'f' << 16 | (uint64_t)'R' << 8 | (uint64_t)129
|
||||
|
||||
/* Raw profile format version (start from 1). */
|
||||
#define INSTR_PROF_RAW_VERSION 7
|
||||
#define INSTR_PROF_RAW_VERSION 8
|
||||
/* Indexed profile format version (start from 1). */
|
||||
#define INSTR_PROF_INDEX_VERSION 7
|
||||
/* Coverage mapping format version (start from 0). */
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -11,7 +11,7 @@
|
|||
// INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
|
||||
|
||||
RUN: printf '\201rforpl\377' > %t.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
|
||||
// There will be 2 20-byte binary IDs, so the total Binary IDs size will be 64 bytes.
|
||||
// 2 * 8 binary ID sizes
|
||||
// + 2 * 20 binary IDs (of size 20)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\201rforpl\377' > %t.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
|
||||
// We should fail on this because the data buffer (profraw file) is not long
|
||||
// enough to hold this binary IDs size. NOTE that this (combined with the 8-byte
|
||||
// alignment requirement for binary IDs size) will ensure we can at least read one
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\201rforpl\377' > %t.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\40\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
|
||||
|
||||
RUN: printf '\201rforpl\377' > %t.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\201rforpl\377' > %t.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
|
||||
// We should fail on this because the binary IDs is not a multiple of 8 bytes.
|
||||
RUN: printf '\77\0\0\0\0\0\0\0' >> %t.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\377lprofR\201' > %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\7' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\10' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\2' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\201Rforpl\377' > %t
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\2\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\377lprofr\201' > %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\7' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\10' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\2' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\201rforpl\377' > %t
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\2\0\0\0\0\0\0\0' >> %t
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
RUN: printf '\201rforpl\377' > %t-foo.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t-foo.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t-foo.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
|
||||
RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
|
||||
|
@ -21,7 +21,7 @@ RUN: printf '\023\0\0\0\0\0\0\0' >> %t-foo.profraw
|
|||
RUN: printf '\3\0foo\0\0\0' >> %t-foo.profraw
|
||||
|
||||
RUN: printf '\201rforpl\377' > %t-bar.profraw
|
||||
RUN: printf '\7\0\0\0\0\0\0\0' >> %t-bar.profraw
|
||||
RUN: printf '\10\0\0\0\0\0\0\0' >> %t-bar.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
|
||||
RUN: printf '\1\0\0\0\0\0\0\0' >> %t-bar.profraw
|
||||
RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
|
||||
|
|
Loading…
Reference in New Issue