7#ifndef ETISS_PLUGIN_VVLOGGER_H_
8#define ETISS_PLUGIN_VVLOGGER_H_
29 std::function<
void(std::ostream &out,
const std::string &field,
uint64_t value)> writer);
52 std::function<void(std::ostream &out,
const std::string &field,
uint64_t value)>
writer_;
general configuration and logging
plugins for extensions to code translation and instruction execution
static __inline__ uint64_t
allows to add code to the translation of instructions
holds etiss::instr::VariableInstructionSet instances for different modes.
writes the value of a field before each instruction
std::ofstream out_
file stream for logger.
virtual std::string _getPluginName() const
returns the name of the Plugin.
virtual void initCodeBlock(etiss::CodeBlock &block) const
called before instructions are translated for the code block
void writeValue()
Calls the function specified with writer_ to log the variable.
std::function< void(std::ostream &out, const std::string &field, uint64_t value)> writer_
Function which specifies the outout format.
virtual void finalizeInstrSet(etiss::instr::ModedInstructionSet &) const
called after all instructions have been added to allow last changes
std::string field_
Name of the field to log.