
This is to account for the change that made CountersPtr in __profd_ relative which landed in a1532ed27582038e2d9588108ba0fe8237f01844. 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
21 lines
974 B
Plaintext
21 lines
974 B
Plaintext
RUN: printf '\201rforpl\377' > %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
|
|
// 8-byte size if the binary IDs are provided.
|
|
RUN: printf '\8\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
|
|
RUN: printf '\0\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
|
|
RUN: printf '\0\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
|
|
|
|
RUN: printf '\0\0\0\0\0\0\0' >> %t.profraw
|
|
|
|
// RUN: not llvm-profdata show --binary-ids %t.profraw 2>&1 | FileCheck %s
|
|
// CHECK: invalid instrumentation profile data (file header is corrupt)
|