wmoo: wait n + m loop iterations, determine #instr from golden run

n=WEATHER_NUMITER_TRACING
 - iterations that are traced (= fault-space width)
 - yields #instructions to that point in the golden run
 -> WEATHER_NUMINSTR_TRACING
m=WEATHER_NUMITER_AFTER
 - iterations for observation afterwards (everything continuing OK?)
 - yields additional #instructions for that second part
 -> WEATHER_NUMINSTR_AFTER

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1102 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-04-18 14:19:08 +00:00
parent d96d3c4c5b
commit f468a197f9
3 changed files with 61 additions and 23 deletions

View File

@ -10,12 +10,22 @@
// main() address:
// nm -C vanilla.elf|fgrep main
#define WEATHER_FUNC_MAIN 0x00100f80
// Temperature::measure() address:
// nm -C vanilla.elf|fgrep 'Temperature::measure()'
#define WEATHER_FUNC_TEMP_MEASURE 0x00100dc0
// number of instructions we want to observe
// 20k suffices for 4 measure() calls; we can do more later (without really learning more?)
#define WEATHER_NUMINSTR 20000
// wait_begin address
#define WEATHER_FUNC_WAIT_BEGIN 0x00100f60
// wait_end address
#define WEATHER_FUNC_WAIT_END 0x00100f70
// number of main loop iterations to trace
// (determines trace length and therefore fault-space width)
#define WEATHER_NUMITER_TRACING 4
// number of instructions needed for these iterations in golden run (taken from
// experiment step #2)
#define WEATHER_NUMINSTR_TRACING 21437
// number of additional loop iterations for FI experiments (to see whether
// everything continues working fine)
#define WEATHER_NUMITER_AFTER 2
// number of instructions needed for these iterations in golden run (taken from
// experiment step #2)
#define WEATHER_NUMINSTR_AFTER 10676
// data/BSS begin:
// nm -C vanilla.elf|fgrep ___DATA_START__
#define WEATHER_DATA_START 0x001018c0