OpenCSD - CoreSight Trace Decode Library  1.3.3
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TrcPktProcEtmV3 Class Reference

#include <trc_pkt_proc_etmv3.h>

Inheritance diagram for TrcPktProcEtmV3:
Inheritance graph
[legend]
Collaboration diagram for TrcPktProcEtmV3:
Collaboration graph
[legend]

Public Member Functions

 TrcPktProcEtmV3 ()
 
 TrcPktProcEtmV3 (int instIDNum)
 
virtual ~TrcPktProcEtmV3 ()
 
- Public Member Functions inherited from TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >
 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< EtmV3TrcPacket > > * getPacketOutAttachPt ()
 Attachement point for the protocol packet output. More...
 
componentAttachPt< IPktRawDataMon< EtmV3TrcPacket > > * getRawPacketMonAttachPt ()
 Attachment point for the protocol packet monitor. More...
 
componentAttachPt< ITrcPktIndexer< ocsd_etmv3_pkt_type > > * getTraceIDIndexerAttachPt ()
 Attachment point for a packet indexer. More...
 
virtual ocsd_err_t setProtocolConfig (const EtmV3Config *config)
 < Set the protocol specific configuration for the decoder. More...
 
virtual const EtmV3ConfiggetProtocolConfig () const
 
virtual ocsd_err_t getStatsBlock (ocsd_decode_stats_t **pp_stats)
 
virtual void resetStats ()
 
- Public Member Functions inherited from TrcPktProcI
 TrcPktProcI (const char *component_name)
 
 TrcPktProcI (const char *component_name, int instIDNum)
 
virtual ~TrcPktProcI ()
 
- 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)
 
TraceComponentgetAssocComponent ()
 
void LogDefMessage (const std::string &msg)
 
- Public Member Functions inherited from ITrcDataIn
 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)
 Implementation function for the OCSD_OP_DATA operation. More...
 
virtual ocsd_datapath_resp_t onEOT ()
 Implementation function for the OCSD_OP_EOT operation. More...
 
virtual ocsd_datapath_resp_t onReset ()
 Implementation function for the OCSD_OP_RESET operation. More...
 
virtual ocsd_datapath_resp_t onFlush ()
 Implementation function for the OCSD_OP_FLUSH operation. More...
 
virtual ocsd_err_t onProtocolConfig ()
 Called when the configuration object is passed to the decoder. More...
 
virtual const bool isBadPacket () const
 check if the current packet is an error / bad packet More...
 
- Protected Member Functions inherited from TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >
ocsd_datapath_resp_t outputDecodedPacket (const ocsd_trc_index_t index_sop, const EtmV3TrcPacket *pkt)
 
void outputRawPacketToMonitor (const ocsd_trc_index_t index_sop, const EtmV3TrcPacket *pkt, const uint32_t size, const uint8_t *p_data)
 
void indexPacket (const ocsd_trc_index_t index_sop, const ocsd_etmv3_pkt_type *packet_type)
 
ocsd_datapath_resp_t outputOnAllInterfaces (const ocsd_trc_index_t index_sop, const EtmV3TrcPacket *pkt, const ocsd_etmv3_pkt_type *pkt_type, std::vector< uint8_t > &pktdata)
 
ocsd_datapath_resp_t outputOnAllInterfaces (const ocsd_trc_index_t index_sop, const EtmV3TrcPacket *pkt, const ocsd_etmv3_pkt_type *pkt_type, const uint8_t *pktdata, uint32_t pktlen)
 
const bool hasRawMon () const
 
void ClearConfigObj ()
 
const bool checkInit ()
 
void statsAddTotalCount (const uint64_t count)
 
void statsAddUnsyncCount (const uint64_t count)
 
void statsAddBadSeqCount (const uint32_t count)
 
void statsAddBadHdrCount (const uint32_t count)
 
void statsInit ()
 
- 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)
 

Protected Attributes

EtmV3PktProcImplm_pProcessor
 
- Protected Attributes inherited from TrcPktProcBase< EtmV3TrcPacket, ocsd_etmv3_pkt_type, EtmV3Config >
const EtmV3Configm_config
 
- 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...
 

Friends

class EtmV3PktProcImpl
 

Detailed Description

Definition at line 50 of file trc_pkt_proc_etmv3.h.

Constructor & Destructor Documentation

◆ TrcPktProcEtmV3() [1/2]

TrcPktProcEtmV3::TrcPktProcEtmV3 ( )

◆ TrcPktProcEtmV3() [2/2]

TrcPktProcEtmV3::TrcPktProcEtmV3 ( int  instIDNum)

◆ ~TrcPktProcEtmV3()

virtual TrcPktProcEtmV3::~TrcPktProcEtmV3 ( )
virtual

Member Function Documentation

◆ isBadPacket()

virtual const bool TrcPktProcEtmV3::isBadPacket ( ) const
protectedvirtual

check if the current packet is an error / bad packet

Implements TrcPktProcI.

◆ onEOT()

virtual ocsd_datapath_resp_t TrcPktProcEtmV3::onEOT ( )
protectedvirtual

Implementation function for the OCSD_OP_EOT operation.

Implements TrcPktProcI.

◆ onFlush()

virtual ocsd_datapath_resp_t TrcPktProcEtmV3::onFlush ( )
protectedvirtual

Implementation function for the OCSD_OP_FLUSH operation.

Implements TrcPktProcI.

◆ onProtocolConfig()

virtual ocsd_err_t TrcPktProcEtmV3::onProtocolConfig ( )
protectedvirtual

Called when the configuration object is passed to the decoder.

Implements TrcPktProcI.

◆ onReset()

virtual ocsd_datapath_resp_t TrcPktProcEtmV3::onReset ( )
protectedvirtual

Implementation function for the OCSD_OP_RESET operation.

Implements TrcPktProcI.

◆ processData()

virtual ocsd_datapath_resp_t TrcPktProcEtmV3::processData ( const ocsd_trc_index_t  index,
const uint32_t  dataBlockSize,
const uint8_t *  pDataBlock,
uint32_t *  numBytesProcessed 
)
protectedvirtual

Implementation function for the OCSD_OP_DATA operation.

Implements TrcPktProcI.

Friends And Related Function Documentation

◆ EtmV3PktProcImpl

friend class EtmV3PktProcImpl
friend

Definition at line 69 of file trc_pkt_proc_etmv3.h.

Member Data Documentation

◆ m_pProcessor

EtmV3PktProcImpl* TrcPktProcEtmV3::m_pProcessor
protected

Definition at line 71 of file trc_pkt_proc_etmv3.h.


The documentation for this class was generated from the following file: