import-trace: introduce AdvancedMemoryImporter

A MemoryImporter that additionally imports Relyzer-style conditional
branch history, instruction opcodes, and a virtual
duration=time2-time1+1 column (MariaDB 5.2+ only) for fault-space
pruning purposes.

Change-Id: I6764a26fa8aae21655be44134b88fdee85e67ff6
This commit is contained in:
Horst Schirmeier
2013-07-05 16:59:30 +02:00
parent 12b539ff75
commit ba7c663551
9 changed files with 208 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#include "InstructionImporter.hpp"
#include "RegisterImporter.hpp"
#include "RandomJumpImporter.hpp"
#include "AdvancedMemoryImporter.hpp"
#endif
@ -133,6 +134,8 @@ int main(int argc, char *argv[]) {
} else if (imp == "RandomJumpImporter") {
importer = new RandomJumpImporter();
} else if (imp == "AdvancedMemoryImporter") {
importer = new AdvancedMemoryImporter();
#endif
} else {
LOG << "Unkown import method: " << imp << endl;
@ -235,4 +238,9 @@ int main(int argc, char *argv[]) {
LOG << "copy_to_database() failed" << endl;
exit(-1);
}
if (!importer->finalize()) {
LOG << "finalize() failed" << endl;
exit(-1);
}
}