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