ecos: save experiment runtime

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1927 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-11-13 00:17:31 +00:00
parent 077f7ea507
commit 7b3e5986d1
4 changed files with 19 additions and 7 deletions

View File

@ -17,6 +17,7 @@
#include "sal/bochs/BochsListener.hpp"
#include "sal/Listener.hpp"
#include "util/ElfReader.hpp"
#include "util/WallclockTimer.hpp"
// You need to have the tracing plugin enabled for this
#include "../plugins/tracing/TracingPlugin.hpp"
@ -260,6 +261,9 @@ bool EcosKernelTestExperiment::faultInjection() {
param.msg.set_mem_addr(44540);
#endif
WallclockTimer timer;
timer.startTimer();
int id = param.getWorkloadID();
m_variant = param.msg.variant();
m_benchmark = param.msg.benchmark();
@ -500,6 +504,7 @@ bool EcosKernelTestExperiment::faultInjection() {
if (param.msg.result_size() != 8) {
log << "WTF? param.msg.result_size() != 8" << endl;
} else {
param.msg.set_runtime(timer);
#if !LOCAL
m_jc.sendResult(param);
#endif