LLVM  8.0.1
Public Member Functions | List of all members
llvm::xray::FDRTraceWriter Class Reference

The FDRTraceWriter allows us to hand-craft an XRay Flight Data Recorder (FDR) mode log file. More...

#include "llvm/XRay/FDRTraceWriter.h"

Inheritance diagram for llvm::xray::FDRTraceWriter:
Inheritance graph
[legend]
Collaboration diagram for llvm::xray::FDRTraceWriter:
Collaboration graph
[legend]

Public Member Functions

 FDRTraceWriter (raw_ostream &O, const XRayFileHeader &H)
 
 ~FDRTraceWriter ()
 
Error visit (BufferExtents &) override
 
Error visit (WallclockRecord &) override
 
Error visit (NewCPUIDRecord &) override
 
Error visit (TSCWrapRecord &) override
 
Error visit (CustomEventRecord &) override
 
Error visit (CallArgRecord &) override
 
Error visit (PIDRecord &) override
 
Error visit (NewBufferRecord &) override
 
Error visit (EndBufferRecord &) override
 
Error visit (FunctionRecord &) override
 
Error visit (CustomEventRecordV5 &) override
 
Error visit (TypedEventRecord &) override
 
- Public Member Functions inherited from llvm::xray::RecordVisitor
virtual ~RecordVisitor ()=default
 

Detailed Description

The FDRTraceWriter allows us to hand-craft an XRay Flight Data Recorder (FDR) mode log file.

This is used primarily for testing, generating sequences of FDR records that can be read/processed. It can also be used to generate various kinds of execution traces without using the XRay runtime. Note that this writer does not do any validation, but uses the types of records defined in the FDRRecords.h file.

Definition at line 30 of file FDRTraceWriter.h.

Constructor & Destructor Documentation

◆ FDRTraceWriter()

llvm::xray::FDRTraceWriter::FDRTraceWriter ( raw_ostream O,
const XRayFileHeader H 
)
explicit

◆ ~FDRTraceWriter()

llvm::xray::FDRTraceWriter::~FDRTraceWriter ( )

Definition at line 80 of file FDRTraceWriter.cpp.

Member Function Documentation

◆ visit() [1/12]

Error llvm::xray::FDRTraceWriter::visit ( BufferExtents R)
overridevirtual

Implements llvm::xray::RecordVisitor.

Definition at line 82 of file FDRTraceWriter.cpp.

References llvm::xray::BufferExtents::size().

◆ visit() [2/12]

Error llvm::xray::FDRTraceWriter::visit ( WallclockRecord R)
overridevirtual

◆ visit() [3/12]

Error llvm::xray::FDRTraceWriter::visit ( NewCPUIDRecord R)
overridevirtual

◆ visit() [4/12]

Error llvm::xray::FDRTraceWriter::visit ( TSCWrapRecord R)
overridevirtual

Implements llvm::xray::RecordVisitor.

Definition at line 94 of file FDRTraceWriter.cpp.

References llvm::xray::TSCWrapRecord::tsc().

◆ visit() [5/12]

Error llvm::xray::FDRTraceWriter::visit ( CustomEventRecord R)
overridevirtual

◆ visit() [6/12]

Error llvm::xray::FDRTraceWriter::visit ( CallArgRecord R)
overridevirtual

Implements llvm::xray::RecordVisitor.

Definition at line 125 of file FDRTraceWriter.cpp.

References llvm::xray::CallArgRecord::arg().

◆ visit() [7/12]

Error llvm::xray::FDRTraceWriter::visit ( PIDRecord R)
overridevirtual

Implements llvm::xray::RecordVisitor.

Definition at line 129 of file FDRTraceWriter.cpp.

References llvm::xray::PIDRecord::pid().

◆ visit() [8/12]

Error llvm::xray::FDRTraceWriter::visit ( NewBufferRecord R)
overridevirtual

Implements llvm::xray::RecordVisitor.

Definition at line 133 of file FDRTraceWriter.cpp.

References llvm::xray::NewBufferRecord::tid().

◆ visit() [9/12]

Error llvm::xray::FDRTraceWriter::visit ( EndBufferRecord R)
overridevirtual

Implements llvm::xray::RecordVisitor.

Definition at line 137 of file FDRTraceWriter.cpp.

◆ visit() [10/12]

Error llvm::xray::FDRTraceWriter::visit ( FunctionRecord R)
overridevirtual

◆ visit() [11/12]

Error llvm::xray::FDRTraceWriter::visit ( CustomEventRecordV5 R)
overridevirtual

◆ visit() [12/12]

Error llvm::xray::FDRTraceWriter::visit ( TypedEventRecord R)
overridevirtual

The documentation for this class was generated from the following files: