ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
#include <Action.h>
Public Types | |
enum | Type { BITFLIP , COMMAND , NOP , INJECTION } |
Public Member Functions | |
Action () | |
Action (const InjectorAddress &inj, const std::string &command) | |
abstract string command will be passed to the targeted injector More... | |
Action (const InjectorAddress &inj, const std::string &field, unsigned bit) | |
the bit at the given position of the given field of the given injector will be flipped More... | |
Action (const Fault &fault) | |
injects a fault. this is especially usefull with Triggers of type TIMERELATIVE More... | |
Type | getType () const |
const InjectorAddress & | getInjectorAddress () const |
const std::string & | getCommand () const |
COMMAND only. More... | |
const std::string & | getTargetField () const |
BITFLIP only. More... | |
unsigned | getTargetBit () const |
BITFLIP only. More... | |
const Fault & | getFault () const |
INJECTION only. More... | |
std::string | toString () const |
operator<< can be used. More... | |
Public Member Functions inherited from etiss::ToString | |
ToString () | |
virtual | ~ToString () |
Private Member Functions | |
void | ensure (Type) |
Private Attributes | |
Type | type_ |
type of the Attribute More... | |
InjectorAddress | inj_ |
std::string | command_ |
command e.g. for booting OR1KVCPU More... | |
std::string | field_ |
concerning Field (for fault injection) More... | |
unsigned | bit_ |
concerning Bit (for fault injection) More... | |
std::vector< Fault > | fault_ |
for other injections More... | |
etiss::fault::Action::Action | ( | ) |
Definition at line 62 of file Action.cpp.
References etiss::log(), and etiss::VERBOSE.
etiss::fault::Action::Action | ( | const InjectorAddress & | inj, |
const std::string & | command | ||
) |
abstract string command will be passed to the targeted injector
Definition at line 67 of file Action.cpp.
References etiss::fault::InjectorAddress::getInjectorPath(), etiss::log(), and etiss::VERBOSE.
etiss::fault::Action::Action | ( | const InjectorAddress & | inj, |
const std::string & | field, | ||
unsigned | bit | ||
) |
the bit at the given position of the given field of the given injector will be flipped
Definition at line 73 of file Action.cpp.
References etiss::fault::InjectorAddress::getInjectorPath(), etiss::log(), and etiss::VERBOSE.
etiss::fault::Action::Action | ( | const Fault & | fault | ) |
injects a fault. this is especially usefull with Triggers of type TIMERELATIVE
Definition at line 81 of file Action.cpp.
References fault_, etiss::log(), etiss::fault::Fault::toString(), and etiss::VERBOSE.
|
private |
Definition at line 56 of file Action.cpp.
References type_.
const std::string & etiss::fault::Action::getCommand | ( | ) | const |
const Fault & etiss::fault::Action::getFault | ( | ) | const |
const InjectorAddress & etiss::fault::Action::getInjectorAddress | ( | ) | const |
Definition at line 93 of file Action.cpp.
References inj_.
unsigned etiss::fault::Action::getTargetBit | ( | ) | const |
BITFLIP only.
Definition at line 111 of file Action.cpp.
References bit_.
Referenced by etiss::VirtualStruct::applyAction().
const std::string & etiss::fault::Action::getTargetField | ( | ) | const |
BITFLIP only.
Definition at line 105 of file Action.cpp.
References field_.
Referenced by etiss::VirtualStruct::applyAction().
Action::Type etiss::fault::Action::getType | ( | ) | const |
Definition at line 88 of file Action.cpp.
References type_.
Referenced by etiss::VirtualStruct::applyAction().
std::string etiss::fault::Action::toString | ( | ) | const |
operator<< can be used.
Definition at line 123 of file Action.cpp.
References pugi::xml_node::append_child(), pugi::xml_document::load(), and pugi::xml_document::save().
|
private |
concerning Bit (for fault injection)
Definition at line 139 of file Action.h.
Referenced by getTargetBit().
|
private |
command e.g. for booting OR1KVCPU
Definition at line 137 of file Action.h.
Referenced by getCommand().
|
private |
for other injections
Definition at line 140 of file Action.h.
Referenced by Action(), and getFault().
|
private |
concerning Field (for fault injection)
Definition at line 138 of file Action.h.
Referenced by getTargetField().
|
private |
Definition at line 136 of file Action.h.
Referenced by getInjectorAddress().
|
private |
type of the Attribute
Definition at line 135 of file Action.h.
Referenced by ensure(), getFault(), and getType().