wmoo: trace and sim-state suffix
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1333 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -19,8 +19,8 @@
|
||||
using namespace std;
|
||||
using namespace fail;
|
||||
|
||||
char const * const trace_filename = "trace.pb";
|
||||
char const * const results_filename = "weathermonitor.csv";
|
||||
char const * const trace_filename = "trace.tc" WEATHER_SUFFIX;
|
||||
char const * const results_filename = "weathermonitor" WEATHER_SUFFIX ".csv";
|
||||
|
||||
// equivalence class type: addr, [i1, i2]
|
||||
// addr: byte to inject a bit-flip into
|
||||
|
||||
@ -34,7 +34,7 @@ using namespace fail;
|
||||
|
||||
bool WeatherMonitorExperiment::run()
|
||||
{
|
||||
char const *statename = "bochs.state";
|
||||
char const *statename = "bochs.state" WEATHER_SUFFIX;
|
||||
Logger log("Weathermonitor", false);
|
||||
BPSingleEvent bp;
|
||||
|
||||
@ -75,7 +75,7 @@ bool WeatherMonitorExperiment::run()
|
||||
//tp.setLogIPOnly(true);
|
||||
|
||||
// record trace
|
||||
char const *tracefile = "trace.pb";
|
||||
char const *tracefile = "trace.tc" WEATHER_SUFFIX;
|
||||
ofstream of(tracefile);
|
||||
tp.setTraceFile(&of);
|
||||
|
||||
|
||||
@ -8,6 +8,8 @@
|
||||
|
||||
#if WEATHERMONITOR_VARIANT == 0 // without vptr guards
|
||||
|
||||
// suffix for simulator state, trace file
|
||||
#define WEATHER_SUFFIX ".vanilla"
|
||||
// main() address:
|
||||
// nm -C vanilla.elf|fgrep main
|
||||
#define WEATHER_FUNC_MAIN 0x00100f70
|
||||
@ -44,6 +46,8 @@
|
||||
|
||||
#elif WEATHERMONITOR_VARIANT == 1 // with guards
|
||||
|
||||
// suffix for simulator state, trace file
|
||||
#define WEATHER_SUFFIX ".guarded"
|
||||
// main() address:
|
||||
// nm -C guarded.elf|fgrep main
|
||||
#define WEATHER_FUNC_MAIN 0x00100fc0
|
||||
@ -80,6 +84,8 @@
|
||||
|
||||
#elif WEATHERMONITOR_VARIANT == 2 // with guards + plausibility check
|
||||
|
||||
// suffix for simulator state, trace file
|
||||
#define WEATHER_SUFFIX ".plausibility"
|
||||
// main() address:
|
||||
// nm -C plausibility.elf|fgrep main
|
||||
#define WEATHER_FUNC_MAIN 0x00100fd0
|
||||
|
||||
@ -21,6 +21,8 @@ EOF
|
||||
|
||||
function alldefs() {
|
||||
cat <<EOF
|
||||
// suffix for simulator state, trace file
|
||||
#define WEATHER_SUFFIX ".`basename $1|sed s/\\\\..*$//`"
|
||||
// main() address:
|
||||
// nm -C $(basename $1)|fgrep main
|
||||
#define WEATHER_FUNC_MAIN 0x`addrof $1 main`
|
||||
|
||||
Reference in New Issue
Block a user