36 #ifndef ARM_TRC_CMP_CFG_ETMV3_H_INCLUDED
37 #define ARM_TRC_CMP_CFG_ETMV3_H_INCLUDED
118 const bool hasTS()
const;
149 return ((
int)m_cfg.
reg_idr & 0xF0) >> 4;
Base class for configuration data on CoreSight trace component.
Interpreter class for etm v3 config structure.
EtmV3Config(const ocsd_etmv3_cfg *cfg_regs)
static const uint32_t CCER_HAS_TS
static const uint32_t CTRL_VMID_ENA
EtmTraceMode const GetTraceMode() const
return trace mode
static const uint32_t CCER_VIRTEXT
static const uint32_t CTRL_DATAONLY
static const uint32_t CTRL_CYCLEACC
static const uint32_t CCER_TS64BIT
const int CtxtIDBytes() const
number of context ID bytes traced 1,2,4;
static const uint32_t CTRL_DATAADDR
static const uint32_t CTRL_TS_ENA
static const uint32_t CTRL_DATAVAL
static const uint32_t IDR_ALTBRANCH
EtmTraceMode
combination enum to describe trace mode.
@ TM_I_DATA_ADDR
instruction + data address
@ TM_DATAONLY_VAL_ADDR
data value + address trace
@ TM_DATAONLY_VAL
data value trace
@ TM_INSTR_ONLY
instruction only trace
@ TM_I_DATA_VAL_ADDR
instr + data value + data address
@ TM_I_DATA_VAL
instruction + data value
@ TM_DATAONLY_ADDR
data address trace
enum _ocsd_core_profile ocsd_core_profile_t
enum _ocsd_arch_version ocsd_arch_version_t
const bool hasVirtExt() const
processor has virtualisation extensions.
const bool isTSEnabled() const
Timestamp trace is enabled.
const bool isV7MArch() const
source is V7M architecture
const bool TSPkt64() const
timestamp packet is 64 bits in size.
const bool isDataValTrace() const
data value trace present.
const int MinorRev() const
return X revision in 3.X
virtual const uint8_t getTraceID() const
CoreSight Trace ID for this device.
const bool hasTS() const
Timestamps implemented in trace.
const ocsd_arch_version_t getArchVersion() const
architecture version
const bool isVMIDTrace() const
VMID tracing enabled.
const bool isCycleAcc() const
return true if cycle accurate tracing enabled.
const bool isAltBranch() const
Alternate branch packet encoding used.
const bool isDataTrace() const
either or both data trace types present.
EtmV3Config & operator=(const ocsd_etmv3_cfg *p_cfg)
copy assignment operator for C-API base structure into class.
const bool isInstrTrace() const
instruction trace present.
const ocsd_core_profile_t getCoreProfile() const
core profile.
const bool isDataAddrTrace() const
data address trace present.
ocsd_core_profile_t core_prof
ocsd_arch_version_t arch_ver