|
gem5
v21.0.1.0
|
The InputStream encapsulates a trace file and the internal buffers and populates TraceElements based on the input. More...
Public Member Functions | |
| InputStream (const std::string &filename) | |
| Create a trace input stream for a given file name. More... | |
| void | reset () |
| Reset the stream such that it can be played once again. More... | |
| bool | read (TraceElement *element) |
| Attempt to read a trace element from the stream, and also notify the caller if the end of the file was reached. More... | |
Private Attributes | |
| ProtoInputStream | trace |
The InputStream encapsulates a trace file and the internal buffers and populates TraceElements based on the input.
Definition at line 372 of file trace_cpu.hh.
| TraceCPU::FixedRetryGen::InputStream::InputStream | ( | const std::string & | filename | ) |
Create a trace input stream for a given file name.
| filename | Path to the file to read from |
Definition at line 1369 of file trace_cpu.cc.
References SimClock::Frequency, panic, ProtoInputStream::read(), and trace.
| bool TraceCPU::FixedRetryGen::InputStream::read | ( | TraceElement * | element | ) |
Attempt to read a trace element from the stream, and also notify the caller if the end of the file was reached.
| element | Trace element to populate |
Definition at line 1391 of file trace_cpu.cc.
References TraceCPU::FixedRetryGen::TraceElement::addr, TraceCPU::FixedRetryGen::TraceElement::blocksize, MemCmd::cmd, TraceCPU::FixedRetryGen::TraceElement::cmd, TraceCPU::FixedRetryGen::TraceElement::flags, TraceCPU::FixedRetryGen::TraceElement::pc, read(), TraceCPU::FixedRetryGen::TraceElement::tick, and TraceCPU::FixedRetryGen::trace.
Referenced by TraceCPU::FixedRetryGen::nextExecute(), and read().
| void TraceCPU::FixedRetryGen::InputStream::reset | ( | ) |
Reset the stream such that it can be played once again.
Definition at line 1385 of file trace_cpu.cc.
References reset(), and TraceCPU::FixedRetryGen::trace.
Referenced by TraceCPU::FixedRetryGen::exit(), and reset().
|
private |
Definition at line 376 of file trace_cpu.hh.
Referenced by InputStream().