OpenCSD - CoreSight Trace Decode Library  0.5
Public Member Functions | List of all members
OcsdTraceElement Class Reference

Generic trace element class. More...

#include <trc_gen_elem.h>

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

Public Member Functions

 OcsdTraceElement ()
 
 OcsdTraceElement (ocsd_gen_trc_elem_t type)
 
virtual ~OcsdTraceElement ()
 
void init ()
 
void setType (const ocsd_gen_trc_elem_t type)
 set type and init flags More...
 
void updateType (const ocsd_gen_trc_elem_t type)
 change type only - no init More...
 
void setContext (const ocsd_pe_context &new_context)
 
void setISA (const ocsd_isa isa_update)
 
void setCycleCount (const uint32_t cycleCount)
 
void setEvent (const event_t ev_type, const uint16_t number)
 
void setTS (const uint64_t ts, const bool freqChange=false)
 
void setExcepMarker ()
 
void setExceptionNum (uint32_t excepNum)
 
void setTraceOnReason (const trace_on_reason_t reason)
 
void setAddrRange (const ocsd_vaddr_t st_addr, const ocsd_vaddr_t en_addr)
 
void setLastInstrInfo (const bool exec, const ocsd_instr_type last_i_type, const ocsd_instr_subtype last_i_subtype)
 
void setAddrStart (const ocsd_vaddr_t st_addr)
 
void setSWTInfo (const ocsd_swt_info_t swt_info)
 
void setExtendedDataPtr (const void *data_ptr)
 
virtual void toString (std::string &str) const
 
OcsdTraceElementoperator= (const ocsd_generic_trace_elem *p_elem)
 
const ocsd_gen_trc_elem_t getType () const
 
const ocsd_pe_context & getContext () const
 
- Public Member Functions inherited from trcPrintableElem
 trcPrintableElem ()
 
virtual ~trcPrintableElem ()
 
virtual void toStringFmt (const uint32_t fmtFlags, std::string &str) const
 

Additional Inherited Members

- Static Public Member Functions inherited from trcPrintableElem
static void getValStr (std::string &valStr, const int valTotalBitSize, const int valValidBits, const uint64_t value, const bool asHex=true, const int updateBits=0)
 

Detailed Description

Generic trace element class.

Definition at line 49 of file trc_gen_elem.h.

Constructor & Destructor Documentation

◆ ~OcsdTraceElement()

virtual OcsdTraceElement::~OcsdTraceElement ( )
inlinevirtual

Definition at line 54 of file trc_gen_elem.h.

Here is the call graph for this function:

Member Function Documentation

◆ getContext()

const ocsd_pe_context& OcsdTraceElement::getContext ( ) const
inline

Definition at line 94 of file trc_gen_elem.h.

◆ getType()

const ocsd_gen_trc_elem_t OcsdTraceElement::getType ( ) const
inline

Definition at line 91 of file trc_gen_elem.h.

◆ operator=()

OcsdTraceElement& OcsdTraceElement::operator= ( const ocsd_generic_trace_elem *  p_elem)
Here is the caller graph for this function:

◆ setAddrStart()

void OcsdTraceElement::setAddrStart ( const ocsd_vaddr_t  st_addr)
inline

Definition at line 78 of file trc_gen_elem.h.

◆ setContext()

void OcsdTraceElement::setContext ( const ocsd_pe_context &  new_context)
inline

Definition at line 63 of file trc_gen_elem.h.

Here is the call graph for this function:

◆ setExcepMarker()

void OcsdTraceElement::setExcepMarker ( )
inline

Definition at line 70 of file trc_gen_elem.h.

◆ setExceptionNum()

void OcsdTraceElement::setExceptionNum ( uint32_t  excepNum)
inline

Definition at line 71 of file trc_gen_elem.h.

Here is the call graph for this function:

◆ setSWTInfo()

void OcsdTraceElement::setSWTInfo ( const ocsd_swt_info_t  swt_info)
inline

Definition at line 80 of file trc_gen_elem.h.

Here is the call graph for this function:

◆ toString()

virtual void OcsdTraceElement::toString ( std::string &  str) const
virtual

Reimplemented from trcPrintableElem.

Here is the caller graph for this function:

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