misc: Separate stats file is generated for SystemC-gem5 co-simulation
Review Request #3132 - Created Sept. 23, 2015 and submitted
| Information | |
|---|---|
| Abdul Mutaal Ahmad | |
| gem5 | |
| Reviewers | |
| Default | |
In previous versions of systemC-gem5 coupling statistics were not updated for the systemc-gem5 simulation. systemC-gem5 simulation only need the previously built config.ini file and normal gem5 simulation has to be run once to generate config.ini file. Thus stats.txt inside the m5out folder is redundant for systemC-gem5 simulation. A new stats file is now generated with the all the statistics for systemC-gem5 simulation. This will also resolve the stats issue in tlm-sysmtemC simulation.
-
util/systemc/stats.cc (Diff revision 1) -
I think a more chatty error message would be beneficial.
Summary: |
|
|---|
Summary: |
|
|---|
Ship It!
Format this patch again. Read the following page: http://gem5.org/Submitting_Contributions
Overall the patch seems fine to me. Just take care of the concern mentioned below.
-
util/systemc/stats.cc (Diff revision 3) -
The file name can be kept as constant, but at least pass an argument to this function that specifies the file path.
I would prefer if you use the same output directory that the rest of the system is using.
It is not clear to me why this is not just calling the "normal" stats dump. It seems like an unfortunate amount of code duplication.
Caveat: make the filename/configuration for stats output visible in the top-level main.cc.
Change Summary:
A global 'filename'variable is added in stats.hh that is set from main.cc.
Diff: |
Revision 4 (+84 -20) |
|---|
Ship It!
