ecos: compress traces
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1950 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include "cpn/CampaignManager.hpp"
|
||||
#include "util/ProtoStream.hpp"
|
||||
#include "util/MemoryMap.hpp"
|
||||
#include "util/gzstream/gzstream.h"
|
||||
|
||||
#include "../plugins/tracing/TracingPlugin.hpp"
|
||||
|
||||
@ -185,7 +186,7 @@ bool EcosKernelTestCampaign::run()
|
||||
local_count_known = count_known, local_count_known_jobs = count_known_jobs;
|
||||
|
||||
// load trace
|
||||
ifstream tracef(filename_trace(variant, benchmark).c_str());
|
||||
igzstream tracef(filename_trace(variant, benchmark).c_str());
|
||||
if (tracef.fail()) {
|
||||
m_log << "couldn't open " << filename_trace(variant, benchmark) << endl;
|
||||
return false;
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
#include "sal/Listener.hpp"
|
||||
#include "util/ElfReader.hpp"
|
||||
#include "util/WallclockTimer.hpp"
|
||||
#include "util/gzstream/gzstream.h"
|
||||
|
||||
// You need to have the tracing plugin enabled for this
|
||||
#include "../plugins/tracing/TracingPlugin.hpp"
|
||||
@ -166,7 +167,7 @@ bool EcosKernelTestExperiment::performTrace(guest_address_t addr_entry, guest_ad
|
||||
tp.restrictMemoryAddresses(&mm);
|
||||
|
||||
// record trace
|
||||
ofstream of(EcosKernelTestCampaign::filename_trace().c_str());
|
||||
ogzstream of(EcosKernelTestCampaign::filename_trace().c_str());
|
||||
tp.setTraceFile(&of);
|
||||
// this must be done *after* configuring the plugin:
|
||||
simulator.addFlow(&tp);
|
||||
|
||||
Reference in New Issue
Block a user