|
OpenCSD - CoreSight Trace Decode Library 1.4.0
|
Base Packet processing interface. More...
#include <trc_pkt_proc_base.h>


Public Member Functions | |
| TrcPktProcI (const char *component_name) | |
| TrcPktProcI (const char *component_name, int instIDNum) | |
| virtual | ~TrcPktProcI () |
| 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)=0 |
| virtual ocsd_err_t | getStatsBlock (ocsd_decode_stats_t **pp_stats)=0 |
| virtual void | resetStats ()=0 |
Public Member Functions inherited from TraceComponent | |
| 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) |
Public Member Functions inherited from ITrcDataIn | |
| ITrcDataIn () | |
| virtual | ~ITrcDataIn () |
| 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)=0 |
Protected Member Functions | |
| 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... | |
Protected Member Functions inherited from TraceComponent | |
| 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) |
Additional Inherited Members | |
Protected Attributes inherited from TraceComponent | |
| 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... | |
Base Packet processing interface.
Defines the packet processing methods that protocol specific processors must implement.
Definition at line 65 of file trc_pkt_proc_base.h.
|
inlinevirtual |
Definition at line 70 of file trc_pkt_proc_base.h.
|
pure virtual |
Implemented in TrcPktProcBase< P, Pt, Pc >, TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >, TrcPktProcBase< EtmV4ITrcPacket, ocsd_etmv4_i_pkt_type, EtmV4Config >, TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig >, and TrcPktProcBase< StmTrcPacket, ocsd_stm_pkt_type, STMConfig >.
|
protectedpure virtual |
check if the current packet is an error / bad packet
Implemented in TrcPktProcEtmV3, TrcPktProcEtmV4I, TrcPktProcPtm, and TrcPktProcStm.
|
protectedpure virtual |
Implementation function for the OCSD_OP_EOT operation.
Implemented in TrcPktProcEtmV3, TrcPktProcEtmV4I, TrcPktProcPtm, and TrcPktProcStm.
|
protectedpure virtual |
Implementation function for the OCSD_OP_FLUSH operation.
Implemented in TrcPktProcEtmV3, TrcPktProcEtmV4I, TrcPktProcPtm, and TrcPktProcStm.
|
protectedpure virtual |
Called when the configuration object is passed to the decoder.
Implemented in TrcPktProcEtmV3, TrcPktProcEtmV4I, TrcPktProcPtm, and TrcPktProcStm.
|
protectedpure virtual |
Implementation function for the OCSD_OP_RESET operation.
Implemented in TrcPktProcEtmV3, TrcPktProcEtmV4I, TrcPktProcPtm, and TrcPktProcStm.
|
protectedpure virtual |
Implementation function for the OCSD_OP_DATA operation.
Implemented in TrcPktProcEtmV3, TrcPktProcEtmV4I, TrcPktProcPtm, and TrcPktProcStm.
|
pure virtual |
Implemented in TrcPktProcBase< P, Pt, Pc >, TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >, TrcPktProcBase< EtmV4ITrcPacket, ocsd_etmv4_i_pkt_type, EtmV4Config >, TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig >, and TrcPktProcBase< StmTrcPacket, ocsd_stm_pkt_type, STMConfig >.
|
pure virtual |
Trace byte data input interface - from ITrcDataIn.
Implements ITrcDataIn.
Implemented in TrcPktProcBase< P, Pt, Pc >, TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >, TrcPktProcBase< EtmV4ITrcPacket, ocsd_etmv4_i_pkt_type, EtmV4Config >, TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig >, and TrcPktProcBase< StmTrcPacket, ocsd_stm_pkt_type, STMConfig >.