Hi Cao,

The CommMonitor already has tracing support (using an efficient protobuf
format). The trace format is defined by src/proto/packet.proto and you can
see how it is populated in src/mem/comm_monitor.cc. If you want to add any
fields it is very straight forward. Just remember that your traces are now
incompatible with the rest of the gem5 eco-system.

Andreas

On 23/06/2015 22:30, "gem5-users on behalf of cao2"
<[email protected] on behalf of [email protected]> wrote:

>Hi there
>
>I'm trying to use CmmMonitor to print  sender of the packet and the
>packet command, can anyone give me some examples of changing commMonitor
>to print what I want?
>
>Best,
>Cao
>_______________________________________________
>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

Reply via email to