generic-tracing: add --restore command-line option

This options performs a restore to the saved state of the machine immediately
after saving (default: off). This option is needed when the state is used by
other experiments that depend on the trace, which slighty differs without a
restore.

Change-Id: I4fdf4c5e03779bb9c6e0a0fa335ceae3e20608a5
This commit is contained in:
Christoph Borchert
2015-06-19 17:55:39 +02:00
parent c4437e1bd3
commit 65e4409c90
2 changed files with 15 additions and 1 deletions

View File

@ -22,6 +22,7 @@ class GenericTracing : public fail::ExperimentFlow {
bool use_memory_map;
fail::MemoryMap traced_memory_map;
bool restore;
bool full_trace;
fail::guest_address_t serial_port;
@ -34,7 +35,8 @@ public:
void parseOptions();
bool run();
GenericTracing() : full_trace(false), m_log("GenericTracing", false) {}
GenericTracing() : restore(false),
full_trace(false), m_log("GenericTracing", false) {}
};
#endif // __TRACING_TEST_HPP__