[profile] Update counter offset to account for binary ids
authorPetr Hosek <phosek@google.com>
Tue, 24 Aug 2021 04:24:24 +0000 (21:24 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 24 Aug 2021 04:43:30 +0000 (21:43 -0700)
commit8111f2f7eef50f8c0cdfd4b575e275c0c4b7fc41
treeff26830bb0aa2f0ce7b4b91be5578a2857afb722
parentd95d2a8e4aaae9521278c2968fb6f1baa820b817
[profile] Update counter offset to account for binary ids

In the raw profile, binary ids immediately follow the header so when
computing counters offset we need to account for the new section.

Differential Revision: https://reviews.llvm.org/D108608
compiler-rt/lib/profile/InstrProfilingFile.c
compiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c