[XRay][compiler-rt] Profiling Mode: Include file header in buffers
authorDean Michael Berris <dberris@google.com>
Tue, 31 Jul 2018 04:16:54 +0000 (04:16 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 31 Jul 2018 04:16:54 +0000 (04:16 +0000)
commit3bd20d460521706269318e81da9f28346bfdb949
treef2294e4081d6f7d1faa9b4b9130fd1c242886778
parent3587150fcbe36cdaca3df2fa2887059e3aba69eb
[XRay][compiler-rt] Profiling Mode: Include file header in buffers

Summary:
This change provides access to the file header even in the in-memory
buffer processing. This allows in-memory processing of the buffers to
also check the version, and the format, of the profile data.

Reviewers: eizan, kpw

Reviewed By: eizan

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D50037

llvm-svn: 338347
compiler-rt/lib/xray/tests/unit/profile_collector_test.cc
compiler-rt/lib/xray/xray_profile_collector.cc
compiler-rt/lib/xray/xray_profiling.cc
compiler-rt/test/xray/TestCases/Posix/profiling-multi-threaded.cc
compiler-rt/test/xray/TestCases/Posix/profiling-single-threaded.cc