Hey guys, Just a quick question for you.
Sometimes, the stats get saved as "stats_db.out" and sometimes as a compressed file "stats_db.out.gz" Is there anyway to control this behavior? I should probably point out that I'm using a standalone simulator that's not connected to Simics. Thanks, Jason From ssomogyi at ece.cmu.edu Tue Jun 10 09:56:17 2008 From: ssomogyi at ece.cmu.edu (Stephen Somogyi) List-Post: [email protected] Date: Tue Jun 10 09:56:25 2008 Subject: [Simflex] Stats output files In-Reply-To: <[email protected]> References: <[email protected]> Message-ID: <[email protected]> Basically, when you call the saveStats() function (in flexus.cpp), if you pass it a filename that ends with ".gz", a compressed stats output file is written. For standalone simulators, we never got around to adding the zlib wrapper code to saveResults() in coordinator.cpp, so the stats file is written uncompressed. To control this behavior... in timing, change backupStats() if you want uncompressed files written all the time, or just pass a filename not ending with .gz when calling flexus.save-stats from the simics command line... for standalone simulators, you will need to port the compression support from flexus.cpp to coordinator.cpp - this should be quick, straightforward, and relatively risk free ;) Stephen > Hey guys, > > Just a quick question for you. > > Sometimes, the stats get saved as "stats_db.out" and sometimes as a > compressed file "stats_db.out.gz" > > Is there anyway to control this behavior? > > I should probably point out that I'm using a standalone simulator that's > not connected to Simics. > > > Thanks, > > Jason > _______________________________________________ > SimFlex mailing list > [email protected] > https://sos.ece.cmu.edu/mailman/listinfo/simflex > SimFlex web page: http://www.ece.cmu.edu/~simflex > From zebchuk at eecg.toronto.edu Tue Jun 10 12:05:14 2008 From: zebchuk at eecg.toronto.edu (Jason Zebchuk) List-Post: [email protected] Date: Tue Jun 10 12:03:29 2008 Subject: [Simflex] Stats output files In-Reply-To: <[email protected]> References: <[email protected]> <[email protected]> Message-ID: <[email protected]> Stephen, Thanks for the summary, I'll port the changes over to coordinator.cpp Jason Stephen Somogyi wrote: > Basically, when you call the saveStats() function (in flexus.cpp), if you > pass it a filename that ends with ".gz", a compressed stats output file is > written. For standalone simulators, we never got around to adding the > zlib wrapper code to saveResults() in coordinator.cpp, so the stats file > is written uncompressed. > > To control this behavior... in timing, change backupStats() if you want > uncompressed files written all the time, or just pass a filename not > ending with .gz when calling flexus.save-stats from the simics command > line... for standalone simulators, you will need to port the compression > support from flexus.cpp to coordinator.cpp - this should be quick, > straightforward, and relatively risk free ;) > > Stephen > > > >> Hey guys, >> >> Just a quick question for you. >> >> Sometimes, the stats get saved as "stats_db.out" and sometimes as a >> compressed file "stats_db.out.gz" >> >> Is there anyway to control this behavior? >> >> I should probably point out that I'm using a standalone simulator that's >> not connected to Simics. >> >> >> Thanks, >> >> Jason >> _______________________________________________ >> SimFlex mailing list >> [email protected] >> https://sos.ece.cmu.edu/mailman/listinfo/simflex >> SimFlex web page: http://www.ece.cmu.edu/~simflex >> >> > _______________________________________________ > SimFlex mailing list > [email protected] > https://sos.ece.cmu.edu/mailman/listinfo/simflex > SimFlex web page: http://www.ece.cmu.edu/~simflex >
