ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Stressor.h
Go to the documentation of this file.
1 
53 #ifndef ETISS_STRESSOR_H_
54 #define ETISS_STRESSOR_H_
55 
56 #ifndef NO_ETISS
57 #include "etiss/fault/Fault.h"
58 #else
59 #include "fault/Fault.h"
60 #endif
61 
62 namespace etiss
63 {
64 
65 namespace fault
66 {
67 
68 class Stressor
69 {
70  public:
75  static bool loadXML(const std::string &file, const int coreID = 0);
76 
82  static bool addFault(const Fault &f);
83 
95  static bool firedTrigger(const Trigger &firedTrigger, int32_t fault_id, Injector *injector, uint64_t time_ps);
96 
99  static void clear();
100 };
101 
102 } // namespace fault
103 
104 } // namespace etiss
105 
106 #endif
contains the fault container class that stores triggers and actions for fault injection
static __inline__ uint64_t
Definition: arm_cde.h:31
static __inline__ int32_t
Definition: arm_mve.h:51
static bool loadXML(const std::string &file, const int coreID=0)
extracts faults out of the given xml file.
Definition: Stressor.cpp:80
static bool addFault(const Fault &f)
adds a fault to a static map that can be accessed by static std::map<int32_t,Fault> & faults().
Definition: Stressor.cpp:138
static void clear()
clears the fault map.
Definition: Stressor.cpp:274
static bool firedTrigger(const Trigger &firedTrigger, int32_t fault_id, Injector *injector, uint64_t time_ps)
Checks if the given trigger is valid and calls applyAction.
Definition: Stressor.cpp:198
Page Table Entry (PTE) defines the composition of Page Frame Number (PFN) and relavant flags.
Definition: Benchmark.h:53