Hi,
You need to decode the trace file using gem5/util/decode_packet_trace.py.
This python file dumps the traces to ASCII.
More information on the fields can be found here: 
https://www.gem5.org/documentation/general_docs/cpu_models/TraceCPU

Serhat

________________________________
From: gem5-users [gem5-users-boun...@gem5.org] on behalf of DaHoon Park 
[pdh930...@gmail.com]
Sent: 16 March 2020 02:24
To: gem5 users mailing list
Subject: [gem5-users] how to interpret Commonitor output?

I want to trace Data Movement between CPU and L1DCache, so i attached 
Commmonitor of changing BaseCPU.py.

Changed Code is this.

    def addPrivateSplitL1Caches(self, ic, dc, iwc = None, dwc = None):
        self.monitor = CommMonitor()
        self.monitor.trace = MemTraceProbe(trace_file="se_trace.txt", 
trace_compress=False)
        print("test this build")
        self.icache = ic
        self.dcache = dc
        self.icache_port = ic.cpu_side
        #self.dcache_port = dc.cpu_side
        self.dcache_port = self.monitor.slave
        self.monitor.master = dc.cpu_side

However, this output file "se_trace,txt" can't interpret.

The top part of the output file is like this.
"
gem5<9b>^A
^Xsystem.cpu.monitor.trace^X<80> 
<94>¥<8d>^]"^O^H^@^R^K.writebacks"^O^H^A^R^K.functional"^N^H^B^R
.interrupt"^S^H^C^R^O.cpu.dtb.walker"^S^H^D^R^O.cpu.itb.walker"^M^H^E^R 
.cpu.inst"^M^H^F^R      .cpu.  etc ...
"

plz help to interpret Commmonitor output.
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to