Hi Abhishek,

As suggested by the error message, you don’t seem to have the python package 
for protobuf. Please ensure that is available and it should work just fine.

Andreas

From: Abhishek Deshpande <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, 18 February 2014 01:18
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [gem5-users] How can I trace data of Cache?

Hello Andreas,

When I get execute decode_packet_trace.py script, I get the following error. I 
am setting protoc manually as mentioned in the script and executing it from 
gem5 root. I have module protoc installed on my system. Can you please give us 
a simple example on how to use the script to decode trace.

Thanks for your help.

Regards,
Abhishek

deshp054@palomar (/project/chriskim10/abhishek/gem5_fs/gem5-stable) % protoc 
--python_out=. --proto_path=src/proto src/proto/packet.proto
deshp054@palomar (/project/chriskim10/abhishek/gem5_fs/gem5-stable) % 
./util/decode_packet_trace.py < ./m5out/cache.trace
Did not find packet proto definitions, attempting to generate
Traceback (most recent call last):
  File "./util/decode_packet_trace.py", line 95, in <module>
    import packet_pb2
  File "/project/chriskim10/abhishek/gem5_fs/gem5-stable/util/packet_pb2.py", 
line 4, in <module>
    from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf



On Mon, Feb 17, 2014 at 5:27 PM, Abhishek Deshpande 
<[email protected]<mailto:[email protected]>> wrote:
Hello all,

Thank you Andreas for writing wiki.
I have attached CommMonitor between L2 and membus. After simulation, 
CommMonitor is present in config.json and  stats.txt. However, I am not able to 
read trace_file associated with CommMonitor. It contains garbage data. I tried 
using script in util/ as well. Additionally, I get following warning when I 
start simulation. I have attached snapshot below.
Can you please take a look into this and let me know what is wrong.

Thanks for your help and support.

Simulation Snapshot:

gem5 compiled Feb 14 2014 15:48:18
gem5 started Feb 16 2014 01:14:01
gem5 executing on palomar.ece.umn.edu<http://palomar.ece.umn.edu>
command line: ./build/ALPHA/gem5.opt --debug-flags=CommMonitor 
./configs/example/fs.py --checkpoint-restore=1 --restore-with-cpu=timing 
--num-cpus=1 --cpu-clock=2.0GHz --caches --l2cache --num-l2caches=1 
--l1d_size=32kB --l1d_assoc=8 --l1i_size=32kB --l1i_assoc=4 --l2_size=1MB 
--l2_assoc=8 --script=./benchmark_Scripts/fft.rcS
Global frequency set at 1000000000000 ticks per second
info: kernel located at: 
/project/chriskim10/abhishek/gem5_fs/gem5-stable/binaries/vmlinux
      0: system.tsunami.io.rtc: Real-time clock set to Thu Jan  1 00:00:00 2009
      0: system.cachemonitor: Created monitor system.cachemonitor with sample 
period 1000000000 ticks (<bad arg type for float format> s)
Switch at curTick count:10000
info: Entering event queue @ 2254843455000.  Starting simulation...


Regards,
Abhishek


On Wed, Feb 12, 2014 at 10:53 AM, Aditya Deshpande 
<[email protected]<mailto:[email protected]>> wrote:
Abhishek,

Look at this mail thread
http://www.mail-archive.com/[email protected]/msg09221.html

You need to have google-protobuf installed to use CommMonitor.


Regards,
Aditya



-- 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

Reply via email to