L4-sys refactoring

move preparation steps into separate functions

Change-Id: I4930ec38f003302596f215a08cd8bf455f525571
This commit is contained in:
Björn Döbel
2013-08-27 10:02:38 +02:00
parent 64840c02e4
commit da7f9caf64
2 changed files with 43 additions and 11 deletions

View File

@ -6,6 +6,7 @@
#include "efw/ExperimentFlow.hpp"
#include "efw/JobClient.hpp"
#include "util/Logger.hpp"
#include "sal/Listener.hpp"
class L4SysExperimentData;
@ -106,6 +107,20 @@ private:
* Send back the experiment parameter set with a description of the error.
*/
void terminateWithError(std::string details, int reason);
/**
* Run until L4SYS_FUNC_ENTRY and save state (experiment preparation,
* phase 1)
*/
void startAndSaveInitState(fail::BPSingleListener& bp);
/**
* Collect list of executed instructions, considering instruction
* filtering if configured (experiment preparation, phase 2).
*/
void collectInstructionTrace(fail::BPSingleListener& bp);
/**
* Perform the golden run (experiment preparation, phase 3)
*/
void goldenRun(fail::BPSingleListener& bp);
};
#endif // __L4SYS_EXPERIMENT_HPP__