Hello,
I did not edit CommMonitor.py yet have that line and checking further, both
master and hpca branches have it as well:
https://gem5.googlesource.com/public/gem5/+/master/src/mem/CommMonitor.py#50
https://gem5.googlesource.com/public/gem5/+/hpca/src/mem/CommMonitor.py#50
Might there be another problem? Sorry if I am misunderstanding anything there.
For src/cpu/BaseCPU.py, you should first import CommMonitor and MemTraceProbe
then edit the function "addPrivateSplitL1Caches":
...
#self.dcache_port = dc.cpu_side
self.monitor = CommMonitor()
self.monitor.trace = MemTraceProbe(trace_file="l1trace.trc.gz")
self.dcache_port = self.monitor.slave
self.monitor.master = dc.cpu_side
..
Cheers
Serhat Gesoglu
________________________________________
From: gem5-users [[email protected]] on behalf of Saivarun R
[[email protected]]
Sent: 29 November 2017 14:48
To: gem5 users mailing list
Subject: Re: [gem5-users] CommMonitor.cc not generating trace file
Sorry I meant,
Firstly, had I not added this line system = Param.System(Parent.any, "System
that the monitor belongs to.") in the CommMonitor.py then I'm getting an error.
On Wed, Nov 29, 2017 at 8:14 PM, Saivarun R
<[email protected]<mailto:[email protected]>> wrote:
Hi Serhat,
Thank you for replying,
Firstly, I had not added this line system = Param.System(Parent.any, "System
that the monitor belongs to.") in the CommMonitor.py then I'm getting an error.
PFA. But as you suggested, I didn't actually attach a MemTraceProbe to the
commMonitor. Please tell me, how should I proceed.
Thank you
Varun
On Wed, Nov 29, 2017 at 5:45 PM, Serhat Gesoglu
<[email protected]<mailto:[email protected]>> wrote:
Hello,
I believe you do not need to change anything on CommMonitor.py. Did you follow
the instructions here and attach a probe to the monitor you are using:
http://gem5.org/General_Memory_System#Traffic_analysis_and_memory_trace_capture
?
Cheers
Serhat Gesoglu
________________________________
From: gem5-users
[[email protected]<mailto:[email protected]>] on behalf of
Saivarun R [[email protected]<mailto:[email protected]>]
Sent: 29 November 2017 08:53
To: [email protected]<mailto:[email protected]>
Subject: [gem5-users] CommMonitor.cc not generating trace file
Hi,
I added CommMonitor between cpu and L1Dcache. I'm using the current gem5 from
the github and updated to the branch hpca.
The CommMonitor is seen in the config.dot.pdf file generated. PFA. But the
trace file is not getting generated in m5out directory. Actually, the
CommMonitor.py does not even have the argument trace_file, the first time I ran
the simulation. I then added the argument in that file. There is a lot of
difference between the comm_monitor.cc file that is there with me and that in
the the last stable version.
I used detailedcpu with l1i_cache and l1d_cache. Kindly, help me in generating
the trace file.
Thank you in advance
Varun
_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users