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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user