Shyam Murthy
2018-11-30 18:07:28 UTC
Hello everyone,
I am trying to profile some information while running an application on gem5 using classic cache model. I have added a data structure in the BaseCache class file (src/mem/cache/base.cc <http://base.cc/>). I would like to print the contents of the data structure at the end of the simulation. I donât see any prints from the BaseCache class destructor at the end of the simulation. How are the BaseCache class objects being destroyed?
I tried printing the contents of the data structure within the OutputStream class destructor, I could see the prints, however the data structure was freed by then. When does gem5 free user defined data structures defined within base.cc <http://base.cc/>?
Thanks in advance.
With regards
Shyam Murthy
Computer Science
UW Madison
I am trying to profile some information while running an application on gem5 using classic cache model. I have added a data structure in the BaseCache class file (src/mem/cache/base.cc <http://base.cc/>). I would like to print the contents of the data structure at the end of the simulation. I donât see any prints from the BaseCache class destructor at the end of the simulation. How are the BaseCache class objects being destroyed?
I tried printing the contents of the data structure within the OutputStream class destructor, I could see the prints, however the data structure was freed by then. When does gem5 free user defined data structures defined within base.cc <http://base.cc/>?
Thanks in advance.
With regards
Shyam Murthy
Computer Science
UW Madison