Hi Andreas,
Actually, I don't understand your note :
"you need to do this when the objects are first connected, not
retroactively in se.py"
Could you post a very simple and short example on using the CommMonitor ?
Hence, we can have a working starting point for this component. I think
it will be very useful for everyone.
Thank you very much.
Sophiane
Le 17/10/2013 11:48, Andreas Hansson a écrit :
Hi all,
The issue has nothing to do with the CommMonitor.
You do not have to add any "addToPath" or imports. Instead, in
CacheConfig, simply instantiate a CommMonitor and connect it as you
already describe. Note that you need to do this when the objects are
first connected, not retroactively in se.py.
Moreover, to get an actual trace, use the "trace file" parameter of
the CommMonitor to dump an protobuf endoded trace of packets. The
debug flags and the deceiving "trace-file" gem5 command-line parameter
will simply pipe the debug output to a text file. This is not what you
want (I suspect).
Good luck.
Andreas
From: senni sophiane <[email protected]
<mailto:[email protected]>>
Reply-To: gem5 users mailing list <[email protected]
<mailto:[email protected]>>
Date: Thursday, 17 October 2013 10:36
To: "[email protected] <mailto:[email protected]>"
<[email protected] <mailto:[email protected]>>
Subject: Re: [gem5-users] How can I trace data of Cache?
Hi everybody,
I have the same error as Heungsun's one when using the CommMonitor.
Someone would know how do we resolve it, please ?
Thank you very much
Sophiane
Le 15/10/2013 10:48, ??? a écrit :
Andreas, Thanks for your answer .
I tried to use CommMonitor. but I've got errors.
I modified se.py as follow.
...
addToPath('../../src/mem')
...
from CommMonitor import *
...
root = Root(full_system = False, system = system)
#Commonitor
system.cachemonitor = CommMonitor()
system.tol2bus.master = system.cachemonitor.slave
system.cachemonitor.master = system.system.membus.slave
Simulation.run(options, root, system, FutureClass)
and my command line is
./build/ARM/gem5.opt --debug-flags=CommMonitor
--trace-file=comm_trace.out configs/example/se_cache_monitor.py -c
queens -o 4 --cpu-type=arm_detailed --num-cpus=4 --caches --l2cache
--l2_assoc=2
and I got messages.
File "<string>", line 1, in <module>
File "/home/y11010s/gem5/src/python/m5/main.py", line 387, in main
exec filecode in scope
File "configs/example/se_cache_monitor.py", line 64, in <module>
from CommMonitor import *
File "/home/y11010s/gem5/src/mem/CommMonitor.py", line 40, in <module>
from MemObject import MemObject
File "/home/y11010s/gem5/src/mem/MemObject.py", line 29, in <module>
from ClockedObject import ClockedObject
ImportError: No module named ClockedObject
Is there any examples to use communication monitor? Please give a advice.
Heungsun
-----Original Message-----
*From:* "Andreas Hansson"<[email protected]>
*To:* "???"<[email protected]>; "gem5 users mailing
list"<[email protected]>;
*Cc:*
*Sent:* 2013-09-25 (?) 22:43:30
*Subject:* Re: [gem5-users] How can I trace data of Cache?
If you're looking for a packet trace, you can always use the
CommMonitor. You can even put one on either side of the cache if
desired. You need to edit the scripts to connect it though.
The trace is encoded (for space and performance reasons), but you can
view it using the utility scripts in the util dir.
Andreas
From: ??? <[email protected] <mailto:[email protected]>>
Reply-To: ??? <[email protected] <mailto:[email protected]>>, gem5
users mailing list <[email protected] <mailto:[email protected]>>
Date: Wednesday, 25 September 2013 14:38
To: gem5-user-mailarchive <[email protected]
<mailto:[email protected]>>
Subject: [gem5-users] How can I trace data of Cache?
Hi all,
I'm newbie of gem5.
I'd like to trace data of cache.
how can I get data of cache?
in Cache_impl.hh, should I add a new flag?
Could you explain what should I code in Cache_impl.hh?
ex) DPRINTF(Cache, "address %x : data %h",pkt->getAddr(),??);
thanks in advance.
-- IMPORTANT NOTICE: The contents of this email and any attachments
are confidential and may also be privileged. If you are not the
intended recipient, please notify the sender immediately and do not
disclose the contents to any other person, use it for any purpose, or
store or copy the information in any medium. Thank you.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1
9NJ, Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[email protected]http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
-- IMPORTANT NOTICE: The contents of this email and any attachments
are confidential and may also be privileged. If you are not the
intended recipient, please notify the sender immediately and do not
disclose the contents to any other person, use it for any purpose, or
store or copy the information in any medium. Thank you.
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
Registered in England & Wales, Company No: 2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1
9NJ, Registered in England & Wales, Company No: 2548782
_______________________________________________
gem5-users mailing list
[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