serialoutput: consistent plugin class naming
Change-Id: I8abe0cfdebecb0adc7229e29bd241da65b27105a
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
#include "sal/Memory.hpp"
|
#include "sal/Memory.hpp"
|
||||||
#include "config/FailConfig.hpp"
|
#include "config/FailConfig.hpp"
|
||||||
#include "../plugins/tracing/TracingPlugin.hpp"
|
#include "../plugins/tracing/TracingPlugin.hpp"
|
||||||
#include "../plugins/serialoutput/SerialOutput.hpp"
|
#include "../plugins/serialoutput/SerialOutputLogger.hpp"
|
||||||
|
|
||||||
|
|
||||||
// Check if configuration dependencies are satisfied:
|
// Check if configuration dependencies are satisfied:
|
||||||
@ -59,7 +59,7 @@ bool RegressionTest::run()
|
|||||||
tp.setOstream(&of);
|
tp.setOstream(&of);
|
||||||
simulator.addFlow(&tp);
|
simulator.addFlow(&tp);
|
||||||
|
|
||||||
SerialOutput so(0x3F8);
|
SerialOutputLogger so(0x3F8);
|
||||||
simulator.addFlow(&so);
|
simulator.addFlow(&so);
|
||||||
|
|
||||||
//BPListener
|
//BPListener
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
set(PLUGIN_NAME serialoutput)
|
set(PLUGIN_NAME serialoutput)
|
||||||
|
|
||||||
set(MY_PLUGIN_SRCS
|
set(MY_PLUGIN_SRCS
|
||||||
SerialOutput.cc
|
SerialOutputLogger.cc
|
||||||
SerialOutput.hpp
|
SerialOutputLogger.hpp
|
||||||
)
|
)
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#include "SerialOutput.hpp"
|
#include "SerialOutputLogger.hpp"
|
||||||
#include "sal/Listener.hpp"
|
#include "sal/Listener.hpp"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace fail;
|
using namespace fail;
|
||||||
|
|
||||||
bool SerialOutput::run()
|
bool SerialOutputLogger::run()
|
||||||
{
|
{
|
||||||
IOPortListener ev_ioport(m_port, m_out);
|
IOPortListener ev_ioport(m_port, m_out);
|
||||||
while (true) {
|
while (true) {
|
||||||
@ -15,12 +15,12 @@ bool SerialOutput::run()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SerialOutput::resetOutput()
|
void SerialOutputLogger::resetOutput()
|
||||||
{
|
{
|
||||||
m_output.clear();
|
m_output.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
string SerialOutput::getOutput()
|
string SerialOutputLogger::getOutput()
|
||||||
{
|
{
|
||||||
return m_output;
|
return m_output;
|
||||||
}
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef __SERIAL_OUTPUT_HPP__
|
#ifndef __SERIAL_OUTPUT_LOGGER_HPP__
|
||||||
#define __SERIAL_OUTPUT_HPP__
|
#define __SERIAL_OUTPUT_LOGGER_HPP__
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@ -12,11 +12,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class SerialOutput
|
* \class SerialOutputLogger
|
||||||
*
|
*
|
||||||
* \brief Plugin to record ioport traffic.
|
* \brief Plugin to record ioport traffic.
|
||||||
*/
|
*/
|
||||||
class SerialOutput : public fail::ExperimentFlow
|
class SerialOutputLogger : public fail::ExperimentFlow
|
||||||
{
|
{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -33,7 +33,7 @@ public:
|
|||||||
* \arg \c true Output on the given port is captured. This is default.
|
* \arg \c true Output on the given port is captured. This is default.
|
||||||
* \arg \c false Input on the given port is captured.
|
* \arg \c false Input on the given port is captured.
|
||||||
*/
|
*/
|
||||||
SerialOutput(unsigned port, bool out = true) : m_out(out), m_port(port) { }
|
SerialOutputLogger(unsigned port, bool out = true) : m_out(out), m_port(port) { }
|
||||||
bool run();
|
bool run();
|
||||||
/**
|
/**
|
||||||
* Resets the output variable which contains the traffic of
|
* Resets the output variable which contains the traffic of
|
||||||
@ -46,4 +46,4 @@ public:
|
|||||||
std::string getOutput();
|
std::string getOutput();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __SERIAL_OUTPUT_HPP__
|
#endif // __SERIAL_OUTPUT_LOGGER_HPP__
|
||||||
Reference in New Issue
Block a user