From 00a93f5593965098600e51960be30f40959fea5d Mon Sep 17 00:00:00 2001 From: hsc Date: Wed, 11 Apr 2012 01:00:20 +0000 Subject: [PATCH] checksum-oostubs: tell the outside world what job we're working on git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1047 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- core/experiments/checksum-oostubs/experiment.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/experiments/checksum-oostubs/experiment.cc b/core/experiments/checksum-oostubs/experiment.cc index 89cea6c1..ee957af4 100644 --- a/core/experiments/checksum-oostubs/experiment.cc +++ b/core/experiments/checksum-oostubs/experiment.cc @@ -1,5 +1,9 @@ #include +// getpid +#include +#include + #include "util/Logger.hpp" #include "experiment.hpp" @@ -131,6 +135,13 @@ bool ChecksumOOStuBSExperiment::run() int bit_offset = param.msg.bit_offset(); log << "job " << id << " instr " << instr_offset << " mem " << mem_addr << "+" << bit_offset << endl; + // XXX debug + std::stringstream fname; + fname << "job." << ::getpid(); + std::ofstream job(fname.str().c_str()); + job << "job " << id << " instr " << instr_offset << " (" << param.msg.instr_address() << ") mem " << mem_addr << "+" << bit_offset << endl; + job.close(); + // reaching finish() could happen before OR after FI fi::BPEvent func_finish(OOSTUBS_FUNC_FINISH); sal::simulator.addEvent(&func_finish);