14#ifndef ETISS_FAULT_ACTION_H_
15#define ETISS_FAULT_ACTION_H_
42BETTER_ENUM(Action_Type,
char, NOP = 0, BITFLIP, MASK, COMMAND, INJECTION, EJECTION, EVENT)
43BETTER_ENUM(Action_MaskOp,
char, NOP = 0, AND, OR, XOR, NAND, NOR)
53 bool is_action_on_field(
void)
const;
103 const type_t &getType()
const;
108 const std::string &getCommand()
const;
111 const std::string &getTargetField()
const;
112 unsigned getTargetBit()
const;
115 const FaultRef &getFaultRef()
const;
128 std::unique_ptr<InjectorAddress>
inj_;
131 unsigned bit_ = { 0 };
contains general definitions used by other fault library code
general configuration and logging
static __inline__ uint64_t
static __inline__ int32_t
Marker interface for toString() support.
std::string command_
command e.g. for booting OR1KVCPU
std::unique_ptr< InjectorAddress > inj_
Address of Injector.
std::unique_ptr< FaultRef > fault_ref_
for fault injection
std::string field_
concerning Field (for fault injection)
type_t type_
type of the Attribute
bool returncode_fromstring(int32_t &out, const std::string &in)
decode etiss::RETURNCODE from string
std::string returncode_tostring(int32_t in)
encode etiss::RETURNCODE to string
std::string toString(const T &val)
conversion of type T to std::string.