OpenCSD - CoreSight Trace Decode Library
0.14.4
|
Packet Processor base class. Provides common infrastructure and interconnections for packet processors. More...
#include <trc_pkt_proc_base.h>
Public Member Functions | |
TrcPktProcBase (const char *component_name) | |
TrcPktProcBase (const char *component_name, int instIDNum) | |
virtual | ~TrcPktProcBase () |
virtual ocsd_datapath_resp_t | TraceDataIn (const ocsd_datapath_op_t op, const ocsd_trc_index_t index, const uint32_t dataBlockSize, const uint8_t *pDataBlock, uint32_t *numBytesProcessed) |
componentAttachPt< IPktDataIn< P > > * | getPacketOutAttachPt () |
Attachement point for the protocol packet output. More... | |
componentAttachPt< IPktRawDataMon< P > > * | getRawPacketMonAttachPt () |
Attachment point for the protocol packet monitor. More... | |
componentAttachPt< ITrcPktIndexer< Pt > > * | getTraceIDIndexerAttachPt () |
Attachment point for a packet indexer. More... | |
virtual ocsd_err_t | setProtocolConfig (const Pc *config) |
< Set the protocol specific configuration for the decoder. More... | |
virtual const Pc * | getProtocolConfig () const |
![]() | |
TrcPktProcI (const char *component_name) | |
TrcPktProcI (const char *component_name, int instIDNum) | |
virtual | ~TrcPktProcI () |
![]() | |
TraceComponent (const std::string &name) | |
TraceComponent (const std::string &name, int instIDNum) | |
virtual | ~TraceComponent () |
const std::string & | getComponentName () const |
void | setComponentName (const std::string &name) |
componentAttachPt< ITraceErrorLog > * | getErrorLogAttachPt () |
ocsd_err_t | setComponentOpMode (uint32_t op_flags) |
const uint32_t | getComponentOpMode () const |
const uint32_t | getSupportedOpModes () const |
void | setAssocComponent (TraceComponent *assocComp) |
TraceComponent * | getAssocComponent () |
void | LogDefMessage (const std::string &msg) |
![]() | |
ITrcDataIn () | |
virtual | ~ITrcDataIn () |
Protected Member Functions | |
ocsd_datapath_resp_t | outputDecodedPacket (const ocsd_trc_index_t index_sop, const P *pkt) |
void | outputRawPacketToMonitor (const ocsd_trc_index_t index_sop, const P *pkt, const uint32_t size, const uint8_t *p_data) |
void | indexPacket (const ocsd_trc_index_t index_sop, const Pt *packet_type) |
ocsd_datapath_resp_t | outputOnAllInterfaces (const ocsd_trc_index_t index_sop, const P *pkt, const Pt *pkt_type, std::vector< uint8_t > &pktdata) |
ocsd_datapath_resp_t | outputOnAllInterfaces (const ocsd_trc_index_t index_sop, const P *pkt, const Pt *pkt_type, const uint8_t *pktdata, uint32_t pktlen) |
const bool | hasRawMon () const |
void | ClearConfigObj () |
const bool | checkInit () |
![]() | |
virtual ocsd_datapath_resp_t | processData (const ocsd_trc_index_t index, const uint32_t dataBlockSize, const uint8_t *pDataBlock, uint32_t *numBytesProcessed)=0 |
Implementation function for the OCSD_OP_DATA operation. More... | |
virtual ocsd_datapath_resp_t | onEOT ()=0 |
Implementation function for the OCSD_OP_EOT operation. More... | |
virtual ocsd_datapath_resp_t | onReset ()=0 |
Implementation function for the OCSD_OP_RESET operation. More... | |
virtual ocsd_datapath_resp_t | onFlush ()=0 |
Implementation function for the OCSD_OP_FLUSH operation. More... | |
virtual ocsd_err_t | onProtocolConfig ()=0 |
Called when the configuration object is passed to the decoder. More... | |
virtual const bool | isBadPacket () const =0 |
check if the current packet is an error / bad packet More... | |
![]() | |
void | LogError (const ocsdError &Error) |
void | LogMessage (const ocsd_err_severity_t filter_level, const std::string &msg) |
const ocsd_err_severity_t | getErrorLogLevel () const |
const bool | isLoggingErrorLevel (const ocsd_err_severity_t level) const |
void | updateErrorLogLevel () |
void | do_attach_notify (const int num_attached) |
void | Init (const std::string &name) |
Protected Attributes | |
const Pc * | m_config |
![]() | |
uint32_t | m_op_flags |
current component operational mode flags. More... | |
uint32_t | m_supported_op_flags |
supported component operational mode flags - derived class to intialise. More... | |
Packet Processor base class. Provides common infrastructure and interconnections for packet processors.
The class is a templated base class.
implementations will provide concrete classes for each of these to operate under the common infrastructures. The base provides the trace data in (ITrcDataIn) interface and operates on the incoming operation type.
Implementions override the 'onFn()' and data process functions defined in TrcPktProcI, with the base class ensuring consistent ordering of operations.
Definition at line 123 of file trc_pkt_proc_base.h.
|
inline |
Attachement point for the protocol packet output.
Definition at line 145 of file trc_pkt_proc_base.h.
|
inlinevirtual |
Definition at line 156 of file trc_pkt_proc_base.h.
|
inline |
Attachment point for the protocol packet monitor.
Definition at line 147 of file trc_pkt_proc_base.h.
|
inline |
Attachment point for a packet indexer.
Definition at line 150 of file trc_pkt_proc_base.h.
|
protected |
Definition at line 180 of file trc_pkt_proc_base.h.