ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
example implementation of a dynamic library interface that is used to provide access to integrated plugins. More...
#include "etiss/helper/CPUArchLibrary.h"
#include "etiss/helper/JITLibrary.h"
#include "etiss/helper/PluginLibrary.h"
#include "etiss/LibraryInterface.h"
#include "etiss/IntegratedLibrary/Logger.h"
#include "etiss/IntegratedLibrary/PrintInstruction.h"
#include "etiss/IntegratedLibrary/errorInjection/Plugin.h"
#include "etiss/IntegratedLibrary/gdb/GDBServer.h"
Go to the source code of this file.
Macros | |
#define | ETISS_LIBNAME ETISSINCLUDED |
Functions | |
ETISS_LIBRARYIF_VERSION_FUNC_IMPL unsigned | ETISSINCLUDED_countJIT () |
unsigned | ETISSINCLUDED_countCPUArch () |
unsigned | ETISSINCLUDED_countPlugin () |
const char * | ETISSINCLUDED_nameJIT (unsigned index) |
const char * | ETISSINCLUDED_nameCPUArch (unsigned index) |
const char * | ETISSINCLUDED_namePlugin (unsigned index) |
etiss::JIT * | ETISSINCLUDED_createJIT (unsigned index, std::map< std::string, std::string > options) |
etiss::CPUArch * | ETISSINCLUDED_createCPUArch (unsigned index, std::map< std::string, std::string > options) |
etiss::Plugin * | ETISSINCLUDED_createPlugin (unsigned index, std::map< std::string, std::string > options) |
void | ETISSINCLUDED_deleteJIT (etiss::JIT *o) |
void | ETISSINCLUDED_deleteCPUArch (etiss::CPUArch *o) |
void | ETISSINCLUDED_deletePlugin (etiss::Plugin *o) |
example implementation of a dynamic library interface that is used to provide access to integrated plugins.
Copyright 2018 Infineon Technologies AG This file is part of ETISS tool, see https://github.com/tum-ei-eda/etiss. The initial version of this software has been created with the funding support by the German Federal Ministry of Education and Research (BMBF) in the project EffektiV under grant 01IS13022. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file IntegratedLibrary.cpp.
#define ETISS_LIBNAME ETISSINCLUDED |
Definition at line 54 of file IntegratedLibrary.cpp.
unsigned ETISSINCLUDED_countCPUArch | ( | ) |
Definition at line 75 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::countCPUArchs().
ETISS_LIBRARYIF_VERSION_FUNC_IMPL unsigned ETISSINCLUDED_countJIT | ( | ) |
Definition at line 73 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::countJITs().
unsigned ETISSINCLUDED_countPlugin | ( | ) |
Definition at line 77 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::countPlugins().
etiss::CPUArch* ETISSINCLUDED_createCPUArch | ( | unsigned | index, |
std::map< std::string, std::string > | options | ||
) |
Definition at line 101 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::createCPUArch().
etiss::JIT* ETISSINCLUDED_createJIT | ( | unsigned | index, |
std::map< std::string, std::string > | options | ||
) |
Definition at line 99 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::createJIT().
etiss::Plugin* ETISSINCLUDED_createPlugin | ( | unsigned | index, |
std::map< std::string, std::string > | options | ||
) |
expected option format: -rREGISTERNAME -> FILEPATH (e.g. -rR4 -> /home/you/registerErrors.txt)
Definition at line 106 of file IntegratedLibrary.cpp.
References get_metrics::cfg, etiss::plugin::gdb::Server::createTCPServer(), etiss::log(), options, etiss::plugin::errorInjection::BlockAccurateHandler::parseFile(), uint64_t, and etiss::WARNING.
Referenced by IntegratedLibrary::createPlugin().
void ETISSINCLUDED_deleteCPUArch | ( | etiss::CPUArch * | o | ) |
Definition at line 146 of file IntegratedLibrary.cpp.
void ETISSINCLUDED_deleteJIT | ( | etiss::JIT * | o | ) |
Definition at line 144 of file IntegratedLibrary.cpp.
void ETISSINCLUDED_deletePlugin | ( | etiss::Plugin * | o | ) |
Definition at line 148 of file IntegratedLibrary.cpp.
const char* ETISSINCLUDED_nameCPUArch | ( | unsigned | index | ) |
Definition at line 81 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::nameCPUArch().
const char* ETISSINCLUDED_nameJIT | ( | unsigned | index | ) |
Definition at line 79 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::nameJIT().
const char* ETISSINCLUDED_namePlugin | ( | unsigned | index | ) |
Definition at line 83 of file IntegratedLibrary.cpp.
Referenced by IntegratedLibrary::namePlugin().