wmoo: don't do more experiments than necessary

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1353 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-06-14 15:54:03 +00:00
parent 94909e8565
commit 33772f750e
2 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,7 @@ bool WeatherMonitorCampaign::run()
// for every section in the trace between subsequent memory
// accesses to that address ...
while(ps.getNext(&ev)) {
while (ps.getNext(&ev) && instr < WEATHER_NUMINSTR_TRACING) {
// instruction events just get counted
if (!ev.has_memaddr()) {
// new instruction

View File

@ -88,6 +88,8 @@ bool WeatherMonitorExperiment::run()
bp.setWatchInstructionPointer(WEATHER_FUNC_WAIT_END);
bp.setCounter(WEATHER_NUMITER_TRACING);
#else
// FIXME this doesn't work properly: trace is one instruction too short as
// tp is removed before all events were delivered
// trace WEATHER_NUMINSTR_TRACING instructions
// -> campaign-ready traces with identical lengths
bp.setWatchInstructionPointer(ANY_ADDR);