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:
hsc
2012-11-23 15:33:27 +00:00
parent ee24acd085
commit c65c4936ab
2 changed files with 4 additions and 2 deletions

View File

@ -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);