Hi Rodrigo,

We are indeed not very good at calling the descriptors. The easiest work-around 
is to register a callback at exit. See, for example, 
src/mem/comm_monitor.{hh,cc}, and how it registers and uses the callback to 
close the streams on exit.

Hopefully that helps to serve as a starting point.

Andreas

From: Rodrigo Reynolds Ram�rez 
<[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Thursday, 6 February 2014 12:58
To: gem5-users <[email protected]<mailto:[email protected]>>
Subject: [gem5-users] Problem with destructor

Hello everyone,

I am trying to add some counters to cache memory implementation, I need to save 
the value of the counters at end of the execution, so I tried to print the 
counters in the destructor of the cache replacement policy 
src/mem/cache/tags/lru.cc and in the cache destructor 
src/mem/cache/cache_impl.hh but these destructors are never used.

I just want to print some values when execution finishes.

Thanks in advance
                                 Rodrigo

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