|
OpenCSD - CoreSight Trace Decode Library 1.4.0
|
#include <trc_pkt_proc_ptm.h>


Classes | |
| struct | _pkt_i_table_t |
Public Member Functions | |
| TrcPktProcPtm () | |
| TrcPktProcPtm (int instIDNum) | |
| virtual | ~TrcPktProcPtm () |
Public Member Functions inherited from TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig > | |
| 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< PtmTrcPacket > > * | getPacketOutAttachPt () |
| Attachement point for the protocol packet output. More... | |
| componentAttachPt< IPktRawDataMon< PtmTrcPacket > > * | getRawPacketMonAttachPt () |
| Attachment point for the protocol packet monitor. More... | |
| componentAttachPt< ITrcPktIndexer< ocsd_ptm_pkt_type > > * | getTraceIDIndexerAttachPt () |
| Attachment point for a packet indexer. More... | |
| virtual ocsd_err_t | setProtocolConfig (const PtmConfig *config) |
| < Set the protocol specific configuration for the decoder. More... | |
| virtual const PtmConfig * | getProtocolConfig () 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 () |
| 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 Types | |
| enum | _process_state { WAIT_SYNC , PROC_HDR , PROC_DATA , SEND_PKT } |
| enum | _async_result { ASYNC , NOT_ASYNC , ASYNC_EXTRA_0 , THROW_0 , ASYNC_INCOMPLETE } |
| typedef enum TrcPktProcPtm::_process_state | process_state |
| typedef enum TrcPktProcPtm::_async_result | async_result_t |
| typedef void(TrcPktProcPtm::* | PPKTFN) (void) |
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... | |
| void | InitPacketState () |
| void | InitProcessorState () |
| ocsd_datapath_resp_t | outputPacket () |
| const bool | readByte (uint8_t &currByte) |
| const bool | readByte () |
| void | unReadByte () |
| const bool | isSync () const |
| ocsd_datapath_resp_t | waitASync () |
| look for first synchronisation point in the packet stream More... | |
| void | pktASync () |
| void | pktISync () |
| void | pktTrigger () |
| void | pktWPointUpdate () |
| void | pktIgnore () |
| void | pktCtxtID () |
| void | pktVMID () |
| void | pktAtom () |
| void | pktTimeStamp () |
| void | pktExceptionRet () |
| void | pktBranchAddr () |
| void | pktReserved () |
| async_result_t | findAsync () |
| void | extractCtxtID (int idx, uint32_t &ctxtID) |
| void | extractCycleCount (int idx, uint32_t &cycleCount) |
| int | extractTS (uint64_t &tsVal, uint8_t &tsUpdateBits) |
| uint32_t | extractAddress (const int offset, uint8_t &total_bits) |
| void | throwMalformedPacketErr (const char *pszErrMsg) |
| void | throwPacketHeaderErr (const char *pszErrMsg) |
| void | BuildIPacketTable () |
Protected Member Functions inherited from TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig > | |
| ocsd_datapath_resp_t | outputDecodedPacket (const ocsd_trc_index_t index_sop, const PtmTrcPacket *pkt) |
| void | outputRawPacketToMonitor (const ocsd_trc_index_t index_sop, const PtmTrcPacket *pkt, const uint32_t size, const uint8_t *p_data) |
| void | indexPacket (const ocsd_trc_index_t index_sop, const ocsd_ptm_pkt_type *packet_type) |
| ocsd_datapath_resp_t | outputOnAllInterfaces (const ocsd_trc_index_t index_sop, const PtmTrcPacket *pkt, const ocsd_ptm_pkt_type *pkt_type, std::vector< uint8_t > &pktdata) |
| ocsd_datapath_resp_t | outputOnAllInterfaces (const ocsd_trc_index_t index_sop, const PtmTrcPacket *pkt, const ocsd_ptm_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 () |
| 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) |
Protected Attributes | |
| process_state | m_process_state |
| std::vector< uint8_t > | m_currPacketData |
| uint32_t | m_currPktIdx |
| PtmTrcPacket | m_curr_packet |
| ocsd_trc_index_t | m_curr_pkt_index |
| uint8_t | m_chanIDCopy |
| const uint8_t * | m_pDataIn |
| uint32_t | m_dataInLen |
| uint32_t | m_dataInProcessed |
| ocsd_trc_index_t | m_block_idx |
| bool | m_waitASyncSOPkt |
| bool | m_bAsyncRawOp |
| bool | m_bOPNotSyncPkt |
| true if output not sync packet when waiting for ASYNC More... | |
| int | m_async_0 |
| bool | m_part_async |
| int | m_numPktBytesReq |
| bool | m_needCycleCount |
| bool | m_gotCycleCount |
| int | m_gotCCBytes |
| int | m_numCtxtIDBytes |
| int | m_gotCtxtIDBytes |
| bool | m_gotTSBytes |
| got all TS bytes More... | |
| int | m_tsByteMax |
| max size for TS portion of TS packet. More... | |
| bool | m_gotAddrBytes |
| got all Addr bytes in branch packet More... | |
| int | m_numAddrBytes |
| number of address bytes More... | |
| bool | m_gotExcepBytes |
| got all needed exception bytes More... | |
| int | m_numExcepBytes |
| got 1st exception byte More... | |
| ocsd_isa | m_addrPktIsa |
| ISA of the branch address packet. More... | |
| int | m_excepAltISA |
| Alt ISA bit iff exception bytes. More... | |
| PPKTFN | m_pIPktFn |
| struct TrcPktProcPtm::_pkt_i_table_t | m_i_table [256] |
Protected Attributes inherited from TrcPktProcBase< PtmTrcPacket, ocsd_ptm_pkt_type, PtmConfig > | |
| const PtmConfig * | m_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... | |
Definition at line 52 of file trc_pkt_proc_ptm.h.
|
protected |
|
protected |
Definition at line 177 of file trc_pkt_proc_ptm.h.
|
protected |
|
protected |
Definition at line 124 of file trc_pkt_proc_ptm.h.
|
protected |
| Enumerator | |
|---|---|
| WAIT_SYNC | |
| PROC_HDR | |
| PROC_DATA | |
| SEND_PKT | |
Definition at line 76 of file trc_pkt_proc_ptm.h.
| TrcPktProcPtm::TrcPktProcPtm | ( | ) |
| TrcPktProcPtm::TrcPktProcPtm | ( | int | instIDNum | ) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
check if the current packet is an error / bad packet
Implements TrcPktProcI.
|
protectedvirtual |
Implementation function for the OCSD_OP_EOT operation.
Implements TrcPktProcI.
|
protectedvirtual |
Implementation function for the OCSD_OP_FLUSH operation.
Implements TrcPktProcI.
|
protectedvirtual |
Called when the configuration object is passed to the decoder.
Implements TrcPktProcI.
|
protectedvirtual |
Implementation function for the OCSD_OP_RESET operation.
Implements TrcPktProcI.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Implementation function for the OCSD_OP_DATA operation.
Implements TrcPktProcI.
|
protected |
|
protected |
|
protected |
look for first synchronisation point in the packet stream
|
protected |
ISA of the branch address packet.
Definition at line 168 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 134 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 106 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 100 of file trc_pkt_proc_ptm.h.
|
protected |
true if output not sync packet when waiting for ASYNC
Definition at line 107 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 94 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 87 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 88 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 85 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 86 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 98 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 99 of file trc_pkt_proc_ptm.h.
|
protected |
Alt ISA bit iff exception bytes.
Definition at line 169 of file trc_pkt_proc_ptm.h.
|
protected |
got all Addr bytes in branch packet
Definition at line 164 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 155 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 158 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 154 of file trc_pkt_proc_ptm.h.
|
protected |
got all needed exception bytes
Definition at line 166 of file trc_pkt_proc_ptm.h.
|
protected |
got all TS bytes
Definition at line 160 of file trc_pkt_proc_ptm.h.
|
protected |
|
protected |
Definition at line 153 of file trc_pkt_proc_ptm.h.
|
protected |
number of address bytes
Definition at line 165 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 157 of file trc_pkt_proc_ptm.h.
|
protected |
got 1st exception byte
Definition at line 167 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 150 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 136 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 97 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 178 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 83 of file trc_pkt_proc_ptm.h.
|
protected |
max size for TS portion of TS packet.
Definition at line 161 of file trc_pkt_proc_ptm.h.
|
protected |
Definition at line 105 of file trc_pkt_proc_ptm.h.