Page MenuHomePhabricator

[XRay][compiler-rt] Write out arg1 payload in naive mode logging

Authored by dberris on Oct 4 2017, 10:08 AM.



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.

Diff Detail


Event Timeline

dberris created this revision.Oct 4 2017, 10:08 AM
pelikan accepted this revision.Oct 4 2017, 9:57 PM

I still don't like how we handle TSC vs. emulation here, but that's not the point of this diff.

This revision is now accepted and ready to land.Oct 4 2017, 9:57 PM
This revision was automatically updated to reflect the committed changes.