replay: assert time only goes forward
commit982263ce714ffcc4c7c41a7b255bd29e093912fe
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 5 Apr 2017 10:05:28 +0000 (5 11:05 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Apr 2017 09:23:38 +0000 (10 10:23 +0100)
tree9c4b07a878d3d32e0a23a6653ef92c260cb61b90
parent1d05906b95e7f2a35be2392506f9af8f89ff39a5
replay: assert time only goes forward

If we find ourselves trying to add an event to the log where time has
gone backwards it is because a vCPU event has occurred and the
main-loop is not yet aware of time moving forward. This should not
happen and if it does its better to fail early than generate a log
that will have weird behaviour.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
replay/replay-internal.c
replay/replay.c