ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
Implementation of etiss/ETISS.h except for etiss::preloadLibraries. More...
#include "etiss/ETISS.h"
#include "etiss/fault/Stressor.h"
#include <csignal>
#include <cstring>
#include <fstream>
#include <functional>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/algorithm/string.hpp>
#include "SimpleIni.h"
Go to the source code of this file.
Classes | |
class | helper_class_etiss_2 |
replaces __attribute__((destructor)) in a portable way More... | |
class | helper_class_etiss_1 |
replaces __attribute__((destructor)) in a portable way More... | |
class | helper_class_etiss_3 |
replaces __attribute__((destructor)) in a portable way More... | |
Functions | |
void | etiss_SIGINT_handler (int sig) |
static void | etiss_remove_SIGINT () |
void | etiss_loadIni (std::string fileName) |
void | etiss_loadIniConfigs () |
std::pair< std::string, std::string > | inifileload (const std::string &s) |
void | etiss_initialize (const std::vector< std::string > &args, bool forced=false) |
static void | etiss_shutdown () |
static void | etiss_check_shutdown () |
check if etiss::shutdown() was called before exiting main. More... | |
Variables | |
std::string | etiss_defaultjit_ |
std::list< std::shared_ptr< etiss::LibraryInterface > > | etiss_libraries_ |
std::recursive_mutex | etiss_libraries_mu_ |
boost::program_options::variables_map | vm |
std::vector< std::string > | pluginOptions = {"plugin.logger.logaddr", "plugin.logger.logmask", "plugin.gdbserver.port"} |
void(* | etiss_prev_SIGINT_handler )(int)=0 |
bool | etiss_SIGINT_handler_enabled = false |
static class helper_class_etiss_2 | helper_class_etiss_2 |
CSimpleIniA * | po_simpleIni |
static class helper_class_etiss_1 | helper_class_etiss_1 |
bool | etiss_shutdownOk = false |
static class helper_class_etiss_3 | helper_class_etiss_3 |
Implementation of etiss/ETISS.h except for etiss::preloadLibraries.
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 ETISS.cpp.
|
static |
check if etiss::shutdown() was called before exiting main.
Definition at line 968 of file ETISS.cpp.
References etiss::ERROR, etiss_shutdownOk, and etiss::log().
Referenced by helper_class_etiss_3::~helper_class_etiss_3().
Definition at line 694 of file ETISS.cpp.
References etiss::addLibrary(), get_metrics::args, etiss::cfg(), etiss::ERROR, etiss_loadIniConfigs(), etiss_remove_SIGINT(), etiss::FATALERROR, etiss::fault::faults(), etiss::Configuration::get(), inifileload(), etiss::py::init(), etiss::installDir(), etiss::fault::Stressor::loadXML(), etiss::log(), etiss::LibraryInterface::openIntegratedLibrary(), get_metrics::parser, etiss::preloadLibraries(), etiss::Configuration::set(), etiss::Configuration::set_cmd_line_boost(), etiss::split(), get_metrics::type, v, etiss::VERBOSE, etiss::verbosity(), vm, and etiss::WARNING.
Referenced by etiss::forceInitialization(), and etiss::initialize().
void etiss_loadIni | ( | std::string | fileName | ) |
Definition at line 387 of file ETISS.cpp.
References NULL, and po_simpleIni.
Referenced by inifileload(), and etiss::Initializer::loadIni().
void etiss_loadIniConfigs | ( | ) |
Definition at line 416 of file ETISS.cpp.
References etiss::cfg(), etiss::ERROR, etiss::FATALERROR, etiss::Configuration::get(), etiss::INFO, etiss::log(), po_simpleIni, etiss::Configuration::set(), get_metrics::sz, get_metrics::type, etiss::VERBOSE, etiss::verbosity(), vm, and etiss::WARNING.
Referenced by etiss_initialize().
|
static |
Definition at line 370 of file ETISS.cpp.
References etiss_prev_SIGINT_handler, and etiss_SIGINT_handler_enabled.
Referenced by etiss_initialize(), and helper_class_etiss_2::~helper_class_etiss_2().
|
static |
Definition at line 893 of file ETISS.cpp.
References etiss::shutdown().
Referenced by helper_class_etiss_1::~helper_class_etiss_1().
void etiss_SIGINT_handler | ( | int | sig | ) |
std::pair<std::string, std::string> inifileload | ( | const std::string & | s | ) |
Definition at line 683 of file ETISS.cpp.
References etiss_loadIni(), and s.
Referenced by etiss_initialize().
std::string etiss_defaultjit_ |
Definition at line 61 of file ETISS.cpp.
Referenced by etiss::addLibrary(), and etiss::getDefaultJIT().
std::list<std::shared_ptr<etiss::LibraryInterface> > etiss_libraries_ |
Definition at line 63 of file ETISS.cpp.
Referenced by etiss::addLibrary(), etiss::getCPUArch(), etiss::getJIT(), etiss::getPlugin(), etiss::listCPUArchs(), etiss::listJITs(), etiss::listLibraries(), etiss::listLibraryPrefixes(), etiss::listPlugins(), and etiss::shutdown().
std::recursive_mutex etiss_libraries_mu_ |
Definition at line 64 of file ETISS.cpp.
Referenced by etiss::addLibrary(), etiss::getCPUArch(), etiss::getJIT(), etiss::getPlugin(), etiss::listCPUArchs(), etiss::listJITs(), etiss::listLibraries(), etiss::listLibraryPrefixes(), etiss::listPlugins(), and etiss::shutdown().
Definition at line 350 of file ETISS.cpp.
Referenced by etiss_remove_SIGINT().
Definition at line 912 of file ETISS.cpp.
Referenced by etiss_check_shutdown(), and etiss::shutdown().
Definition at line 351 of file ETISS.cpp.
Referenced by etiss_remove_SIGINT().
|
static |
|
static |
|
static |
std::vector<std::string> pluginOptions = {"plugin.logger.logaddr", "plugin.logger.logmask", "plugin.gdbserver.port"} |
Definition at line 67 of file ETISS.cpp.
Referenced by etiss::Initializer::loadIniPlugins().
CSimpleIniA* po_simpleIni |
Definition at line 386 of file ETISS.cpp.
Referenced by etiss_loadIni(), etiss_loadIniConfigs(), etiss::Initializer::loadIni(), etiss::Initializer::loadIniPlugins(), and etiss::Initializer::~Initializer().
boost::program_options::variables_map vm |
Definition at line 66 of file ETISS.cpp.
Referenced by etiss_initialize(), etiss_loadIniConfigs(), and etiss::Initializer::loadIniPlugins().