15#ifndef ETISS_STRESSOR_H_
16#define ETISS_STRESSOR_H_
19#include "etiss/jit/ReturnCode.h"
70 static bool loadXML(
const std::string &file,
const int coreID = 0);
83 static bool addFault(
const Fault &f,
bool injected_fault =
false);
110 static std::map<int32_t, Fault> &
faults();
static __inline__ uint64_t
static __inline__ int32_t
static etiss::int32 event_code_
static bool loadXML(const std::string &file, const int coreID=0)
extracts faults out of the given xml file.
static etiss::int32 get_event(void)
static bool removeFault(const Fault &f, bool injected_fault=false)
removes a fault's active triggers from their injectors, thus, deactivating the fault.
static bool addFault(const Fault &f, bool injected_fault=false)
activates a fault's triggers in their injectors
static void reset_event(void)
@ ETISS_RELOAD_TRANSLATION_BLOCK
@ ETISS_FLUSH_TRANSLATION_CACHE
static bool addFaultDefinition(const Fault &f)
adds a fault to a static map that can be accessed by static std::map<int32_t,Fault> & faults().
static void clear()
clears the fault map.
static std::map< int32_t, Fault > & faults()
static map with all referencable faults.
static void set_event(etiss::int32 code)
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.