46a47
> #include "sim/system.hh"
50a52
> system(p->system),
74a77,86
> // Register a callback to compensate for the destructor not
> // being called. The callback forces the stream to flush and
> // closes the output file.
> registerExitCallback(
> new MakeCallback<MemTraceProbe, &MemTraceProbe::closeStreams>(this));
> }
>
> void
> MemTraceProbe::startup()
> {
80d91
< traceStream->write(header_msg);
82,86c93,99
< // Register a callback to compensate for the destructor not
< // being called. The callback forces the stream to flush and
< // closes the output file.
< registerExitCallback(
< new MakeCallback<MemTraceProbe, &MemTraceProbe::closeStreams>(this));
---
> for (int i = 0; i < system->maxMasters(); i++) {
> auto id_string = header_msg.add_id_strings();
> id_string->set_key(i);
> id_string->set_value(system->getMasterName(i));
> }
>
> traceStream->write(header_msg);