Displaying 1 result from an estimated 1 matches for "__llvm_profile_header".
2019 May 16
2
How data is laid out in default.profraw when doing profiling?
...default profraw. Now they want to construct a default profraw manually but don't know how data is laid out in `default profraw` file.
We found a struct ProfDataIOVec in InstrProfilingWriter.c in compiler-rt and followed this layout.
```
ProfDataIOVec IOVec[] = {
{&Header, sizeof(__llvm_profile_header), 1},
{DataBegin, sizeof(__llvm_profile_data), DataSize},
{CountersBegin, sizeof(uint64_t), CountersSize},
{SkipNameDataWrite ? NULL : NamesBegin, sizeof(uint8_t), NamesSize},
{Zeroes, sizeof(uint8_t), Padding}};
```
This helped us successfully passed some small cases(not...