OpenCSD - CoreSight Trace Decode Library
1.3.3
|
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 |
![]() | |
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 | |
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) |
Additional Inherited Members | |
![]() | |
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< EtmV4ITrcPacket, ocsd_etmv4_i_pkt_type, EtmV4Config >, TrcPktProcBase< StmTrcPacket, ocsd_stm_pkt_type, STMConfig >, TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >, and TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig >.
|
protectedpure virtual |
check if the current packet is an error / bad packet
Implemented in TrcPktProcStm, TrcPktProcPtm, TrcPktProcEtmV4I, and TrcPktProcEtmV3.
|
protectedpure virtual |
Implementation function for the OCSD_OP_EOT operation.
Implemented in TrcPktProcStm, TrcPktProcPtm, TrcPktProcEtmV4I, and TrcPktProcEtmV3.
|
protectedpure virtual |
Implementation function for the OCSD_OP_FLUSH operation.
Implemented in TrcPktProcStm, TrcPktProcPtm, TrcPktProcEtmV4I, and TrcPktProcEtmV3.
|
protectedpure virtual |
Called when the configuration object is passed to the decoder.
Implemented in TrcPktProcStm, TrcPktProcPtm, TrcPktProcEtmV4I, and TrcPktProcEtmV3.
|
protectedpure virtual |
Implementation function for the OCSD_OP_RESET operation.
Implemented in TrcPktProcStm, TrcPktProcPtm, TrcPktProcEtmV4I, and TrcPktProcEtmV3.
|
protectedpure virtual |
Implementation function for the OCSD_OP_DATA operation.
Implemented in TrcPktProcStm, TrcPktProcPtm, TrcPktProcEtmV4I, and TrcPktProcEtmV3.
|
pure virtual |
Implemented in TrcPktProcBase< P, Pt, Pc >, TrcPktProcBase< EtmV4ITrcPacket, ocsd_etmv4_i_pkt_type, EtmV4Config >, TrcPktProcBase< StmTrcPacket, ocsd_stm_pkt_type, STMConfig >, TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >, and TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig >.
|
pure virtual |
Trace byte data input interface - from ITrcDataIn.
Implements ITrcDataIn.
Implemented in TrcPktProcBase< P, Pt, Pc >, TrcPktProcBase< EtmV4ITrcPacket, ocsd_etmv4_i_pkt_type, EtmV4Config >, TrcPktProcBase< StmTrcPacket, ocsd_stm_pkt_type, STMConfig >, TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >, and TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig >.