This is an archive of the discontinued LLVM Phabricator instance.

[XRay] Add CPU ID in Custom Event FDR Records
ClosedPublic

Authored by dberris on Oct 30 2018, 11:35 PM.

Details

Summary

This change cuts across compiler-rt and llvm, to increment the FDR log
version number to 4, and include the CPU ID in the custom event records.

This is a step towards allowing us to change the llvm::xray::Trace
object to start representing both custom and typed events in the stream
of records. Follow-on changes will allow us to change the kinds of
records we're presenting in the stream of traces, to incorporate the
data in custom/typed events.

A follow-on change will handle the typed event case, where it may not
fit within the 15-byte buffer for metadata records.

This work is part of the larger effort to enable writing analysis and
processing tools using a common in-memory representation of the events
found in traces. The work will focus on porting existing tools in LLVM
to use the common representation and informing the design of a
library/framework for expressing trace event analysis as C++ programs.

Diff Detail

Event Timeline

dberris created this revision.Oct 30 2018, 11:35 PM
This revision is now accepted and ready to land.Oct 30 2018, 11:40 PM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptOct 31 2018, 5:21 PM