experiment: generic tracing experiment

This commit is contained in:
Christian Dietrich
2013-03-11 15:28:05 +01:00
parent ad3c185b61
commit b491fe8b7a
3 changed files with 283 additions and 0 deletions

View File

@ -0,0 +1,35 @@
#ifndef __GENERIC_TRACING_HPP__
#define __GENERIC_TRACING_HPP__
#include "efw/ExperimentFlow.hpp"
#include "util/Logger.hpp"
#include "util/ElfReader.hpp"
#include "util/MemoryMap.hpp"
#include <string>
#include <vector>
class GenericTracing : public fail::ExperimentFlow {
std::string start_symbol;
std::string stop_symbol;
std::string save_symbol;
std::string state_file;
std::string trace_file;
std::string elf_file;
bool use_memory_map;
fail::MemoryMap traced_memory_map;
fail::Logger m_log;
fail::ElfReader *m_elf;
public:
void parseOptions();
bool run();
GenericTracing() : m_log("GenericTracing", false) {};
};
#endif // __TRACING_TEST_HPP__