[XRay][compiler-rt] Write out arg1 payload in naive mode logging
authorDean Michael Berris <dberris@google.com>
Thu, 5 Oct 2017 05:45:51 +0000 (05:45 +0000)
committerDean Michael Berris <dberris@google.com>
Thu, 5 Oct 2017 05:45:51 +0000 (05:45 +0000)
commit8dcba551d940b58d4f40e481fe0e517089487088
treec2b99390a77eb1fe9c45964564a3e8d1bac3c03e
parent0a465d7a01c45f7930e4f30369f4dd2a605b3dfe
[XRay][compiler-rt] Write out arg1 payload in naive mode logging

Summary:
This change allows the XRay basic (naive) mode logging implementation to
start writing the payload entries through the arg1 logging handler. This
implementation writes out the records that the llvm-xray tool and the
trace reader library will start processing in D38550.

This introduces a new payload record type which logs the data through
the in-memory buffer. It uses the same size/alignment that the normal
XRay record entries use. We use a new record type to indicate these new
entries, so that the trace reader library in LLVM can start reading
these entries.

Depends on D38550.

Reviewers: pelikan

Subscribers: llvm-commits

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

llvm-svn: 314968
compiler-rt/include/xray/xray_records.h
compiler-rt/lib/xray/xray_inmemory_log.cc