TraceGen::InputStream::init()
{
// Create a protobuf message for the header and read it from the stream
- Message::PacketHeader header_msg;
+ ProtoMessage::PacketHeader header_msg;
if (!trace.read(header_msg)) {
panic("Failed to read packet header from trace\n");
bool
TraceGen::InputStream::read(TraceElement& element)
{
- Message::Packet pkt_msg;
+ ProtoMessage::Packet pkt_msg;
if (trace.read(pkt_msg)) {
element.cmd = pkt_msg.cmd();
element.addr = pkt_msg.addr();
// Create a protobuf message for the header and write it to
// the stream
- Message::PacketHeader header_msg;
+ ProtoMessage::PacketHeader header_msg;
header_msg.set_obj_id(name());
header_msg.set_tick_freq(SimClock::Frequency);
traceStream->write(header_msg);
// Create a protobuf message representing the
// packet. Currently we do not preserve the flags in the
// trace.
- Message::Packet pkt_msg;
+ ProtoMessage::Packet pkt_msg;
pkt_msg.set_tick(curTick());
pkt_msg.set_cmd(cmd);
pkt_msg.set_flags(req_flags);
// Authors: Andreas Hansson
// Put all the generated messages in a namespace
-package Message;
+package ProtoMessage;
// Packet header with the identifier describing what object captured
// the trace, the version of this file format, and the tick frequency