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