Added experiment for keso paper.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2048 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hoffmann
2013-02-01 12:26:40 +00:00
parent 6213cc3462
commit 287b26a9cf
5 changed files with 257 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#ifndef __KESO_REFS_EXPERIMENT_HPP__
#define __KESO_REFS_EXPERIMENT_HPP__
#include "efw/ExperimentFlow.hpp"
#include "efw/JobClient.hpp"
#include "util/Logger.hpp"
#include "util/ElfReader.hpp"
#include <string>
class KESOrefs : public fail::ExperimentFlow {
fail::JobClient m_jc;
fail::ElfReader m_elf;
fail::Logger m_log;
fail::MemoryManager& m_mm;
void printEIP();
void setupExitBPs(const std::string&);
void enableBPs();
void clearExitBPs();
void showStaticRefs();
void injectStaticRefs(unsigned referenceoffset, unsigned bitpos);
public:
KESOrefs() : m_log("KESOrefs", false), m_mm(fail::simulator.getMemoryManager()) {};
bool run();
};
#endif // __KESO_REFS_EXPERIMENT_HPP__