wmoo: record trace, auto-generate ELF symbol info

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1090 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-04-17 17:01:01 +00:00
parent 1437d14a67
commit a3ed6ea25e
3 changed files with 103 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#ifndef __WEATHERMONITOR_EXPERIMENT_INFO_HPP__
#define __WEATHERMONITOR_EXPERIMENT_INFO_HPP__
// FIXME autogenerate this
// autogenerated, don't edit!
#define GUARDED_WEATHERMONITOR 0
@ -9,24 +9,25 @@
// main() address:
// nm -C vanilla.elf|fgrep main
#define WEATHER_FUNC_MAIN 0x001010b0
#define WEATHER_FUNC_MAIN 0x00100f50
// Temperature::measure() address:
// nm -C vanilla.elf|fgrep 'Temperature::measure()'
#define WEATHER_FUNC_TEMP_MEASURE 0x00100f10
#define WEATHER_FUNC_TEMP_MEASURE 0x001010f0
// number of instructions we want to observe
#define WEATHER_NUMINSTR 10000
// 20k suffices for 4 measure() calls; we can do more later (without really learning more?)
#define WEATHER_NUMINSTR 20000
// data/BSS begin:
// nm -C vanilla.elf|fgrep ___DATA_START__
#define WEATHER_DATA_START 0x00101c34
#define WEATHER_DATA_START 0x00102304
// data/BSS end:
// nm -C vanilla.elf|fgrep ___BSS_END__
#define WEATHER_DATA_END 0x00103529
#define WEATHER_DATA_END 0x00103bf4
// text begin:
// nm -C vanilla.elf|fgrep ___TEXT_START__
#define WEATHER_TEXT_START 0x00100000
// text end:
// nm -C vanilla.elf|fgrep ___TEXT_END__
#define WEATHER_TEXT_END 0x00101a5b
#define WEATHER_TEXT_END 0x0010212b
#else // with guards