Thanks Brendan.
As you mentioned, I realized that "-snapshot-cycles <N>" feature is not available.After a quick tinkering I was able to get it work and for those who need this feature I am posting my fix here

In 'marss/ptlsim/build/sim/ptlsim.cpp' file modify 'capture_stats_snapshot()' function as follow

void capture_stats_snapshot(const char* name) {
  if (logable(100)|1) {
    if (name) ptl_logfile << "Snapshot named " << name;
    ptl_logfile << " at cycle " << sim_cycle << endl;
  }
  /* TODO: Support stats snapshot in new Stats module */
  flush_stats();//My fix
}

This will dump statistics periodically in file specified using simconfig command '-stats <file_name>' or '-ymalstats <file_name>'. I presume this fixes " -snapshot-now" command as well.

Thanks
Ganesh



On 10/14/2015 08:15 PM, Brendan Fitzgerald wrote:
After looking at the code where snapshot-cycles is called, it turns out that that feature was never completed.

I'm not sure what you'll be doing with the statistics, so I'd suggest you modify the code to do whatever you're looking for.

On Tue, Oct 13, 2015 at 11:34 AM, Ganesh Hegde <[email protected] <mailto:[email protected]>> wrote:

    Hello,
            I am using MarssX86 simulator in my research project.I
    need machine statistics to be collected for regular intervals(Say
    for every 1M cycles). I used the command " -snapshot-cycles
    1000000", however I don't see any stats being dumped for every 1M
    cycles.I  see only one stats file in yaml format the end of
    simulation.I would like to know how to collect the stats as
    mentioned before.

    Any help is greatly appreciated.

    With best regards,
    Ganesh

    _______________________________________________
    http://www.marss86.org
    Marss86-Devel mailing list
    [email protected]
    <mailto:[email protected]>
    https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel



_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to