Crate opencsd_sys

Source
Expand description

Auto-generated Rust bindings to the C API of the OpenCSD library. OpenCSD is an open-source decoder for ARM CoreSight trace streams.

Re-exports§

pub use self::_ocsd_err_t as ocsd_err_t;
pub use self::_ocsd_err_severity_t as ocsd_err_severity_t;
pub use self::_ocsd_datapath_op_t as ocsd_datapath_op_t;
pub use self::_ocsd_datapath_resp_t as ocsd_datapath_resp_t;
pub use self::_rcdtl_rawframe_elem_t as ocsd_rawframe_elem_t;
pub use self::_ocsd_dcd_tree_src_t as ocsd_dcd_tree_src_t;
pub use self::_ocsd_arch_version as ocsd_arch_version_t;
pub use self::_ocsd_core_profile as ocsd_core_profile_t;
pub use self::_ocsd_isa as ocsd_isa;
pub use self::_ocsd_sec_level as ocsd_sec_level;
pub use self::_ocsd_ex_level as ocsd_ex_level;
pub use self::_ocsd_instr_type as ocsd_instr_type;
pub use self::_ocsd_instr_subtype as ocsd_instr_subtype;
pub use self::_ocsd_mem_space_acc_t as ocsd_mem_space_acc_t;
pub use self::_ocsd_trace_protocol_t as ocsd_trace_protocol_t;
pub use self::_ocsd_gen_trc_elem_t as ocsd_gen_trc_elem_t;
pub use self::_trace_on_reason_t as trace_on_reason_t;
pub use self::_unsync_info_t as unsync_info_t;
pub use self::_trace_sync_marker_t as trace_sync_marker_t;
pub use self::_memtrans_t as trace_memtrans_t;
pub use self::_event_t as event_t;
pub use self::_ocsd_pkt_va_size as ocsd_pkt_va_size;
pub use self::_ocsd_pkt_atm_type as ocsd_pkt_atm_type;
pub use self::_ocsd_atm_val as ocsd_atm_val;
pub use self::_ocsd_iSync_reason as ocsd_iSync_reason;
pub use self::_ocsd_armv7_exception as ocsd_armv7_exception;
pub use self::_ocsd_etmv3_pkt_type as ocsd_etmv3_pkt_type;
pub use self::_ocsd_etmv4_i_pkt_type as ocsd_etmv4_i_pkt_type;
pub use self::_ocsd_etmv4_d_pkt_type as ocsd_etmv4_d_pkt_type;
pub use self::_ocsd_ptm_pkt_type as ocsd_ptm_pkt_type;
pub use self::_ocsd_stm_pkt_type as ocsd_stm_pkt_type;
pub use self::_ocsd_stm_ts_type as ocsd_stm_ts_type;
pub use self::_hw_event_feat as hw_event_feat_t;
pub use self::_ocsd_c_api_cb_types as ocsd_c_api_cb_types;

Structs§

__BindgenBitfieldUnit
__fsid_t
_etmv3_context_t
_etmv3_context_t__bindgen_ty_1
_etmv3_data_t
_etmv3_data_t__bindgen_ty_1
_etmv3_isync_t
_etmv3_isync_t__bindgen_ty_1
_etmv4_addr_val_t
a broadcast address value.
_etmv4_context_t
_etmv4_context_t__bindgen_ty_1
_etmv4_trace_info_t__bindgen_ty_1
_ocsd_arch_profile_t
Combined architecture and profile descriptor for a core
_ocsd_decode_stats
@name Decode statistics
_ocsd_demux_stats
@name Demux Statistics
_ocsd_ete_cfg
@name ETE config Types @{
_ocsd_etmv3_cfg
_ocsd_etmv3_excep
_ocsd_etmv3_excep__bindgen_ty_1
_ocsd_etmv3_pkt
_ocsd_etmv4_cfg
_ocsd_etmv4_d_pkt
_ocsd_etmv4_i_pkt
_ocsd_etmv4_i_pkt__bindgen_ty_1
_ocsd_etmv4_i_pkt__bindgen_ty_2
_ocsd_etmv4_i_pkt__bindgen_ty_3
_ocsd_etmv4_i_pkt__bindgen_ty_4
_ocsd_etmv4_i_pkt__bindgen_ty_5
_ocsd_etmv4_i_pkt__bindgen_ty_6
_ocsd_etmv4_i_pkt__bindgen_ty_3__bindgen_ty_1
_ocsd_etmv4_i_pkt__bindgen_ty_4__bindgen_ty_1
_ocsd_etmv4_i_pkt__bindgen_ty_5__bindgen_ty_1
_ocsd_etmv4_i_pkt__bindgen_ty_7__bindgen_ty_1
_ocsd_extern_dcd_cb_fns
an instance of this is owned by the decoder, filled in by the library - allows the CB fns in the library decode tree to be called.
_ocsd_extern_dcd_fact
set of functions and callbacks to create an extern custom decoder in the library via the C API interface. This structure is registered with the library by name and then decoders of the type can be created on the decode tree.
_ocsd_extern_dcd_inst
Owned by the library instance object, this structure is filled in by the ocsd_extern_dcd_fact_t createDecoder() function.
_ocsd_file_mem_region
memory region type for adding multi-region binary files to memory access interface
_ocsd_generic_trace_elem
_ocsd_generic_trace_elem__bindgen_ty_1__bindgen_ty_1
_ocsd_instr_info
Instruction decode request structure.
_ocsd_pe_context
Core(PE) context structure records current security state, exception level, VMID and ContextID for core.
_ocsd_pe_context__bindgen_ty_1
_ocsd_pkt_atom
_ocsd_pkt_byte_sz_val
_ocsd_pkt_vaddr
_ocsd_ptm_cfg
_ocsd_ptm_excep
_ocsd_ptm_excep__bindgen_ty_1
_ocsd_ptm_pkt
_ocsd_stm_cfg
STM hardware configuration. Contains hardware register values at time of trace capture and HW event feature field to enable and control decode of STM trace stream.
_ocsd_stm_pkt
STM trace packet
_ocsd_swt_info
@name Software Trace Packets Info
_ocsd_swt_info__bindgen_ty_1__bindgen_ty_1
_ptm_context_t
_ptm_context_t__bindgen_ty_1
_sw_ite_t
_trace_event_t
_trace_marker_payload_t
imaxdiv_t
max_align_t

Constants§

C_API_MSGLOGOUT_FLG_FILE
C_API_MSGLOGOUT_FLG_NONE
C_API_MSGLOGOUT_FLG_STDERR
C_API_MSGLOGOUT_FLG_STDOUT
C_API_MSGLOGOUT_MASK
DATA_ADDR_EXPECTED_FLAG
ETE_ARCH_VERSION
ETE_ETM4_OPFLG_MASK
ETE_OPFLG_PKTDEC_SRCADDR_N_ATOMS
ETM4_OPFLG_PKTDEC_AA64_OPCODE_CHK
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
OCSD_BUILTIN_DCD_ETE
OCSD_BUILTIN_DCD_ETMV3
OCSD_BUILTIN_DCD_ETMV4D
OCSD_BUILTIN_DCD_ETMV4I
OCSD_BUILTIN_DCD_PTM
OCSD_BUILTIN_DCD_STM
OCSD_CMPNAME_PREFIX_FRAMEDEFORMATTER
OCSD_CMPNAME_PREFIX_PKTDEC
OCSD_CMPNAME_PREFIX_PKTPROC
OCSD_CMPNAME_PREFIX_SOURCE_READER
OCSD_CREATE_FLG_FULL_DECODER
OCSD_CREATE_FLG_INST_ID
OCSD_CREATE_FLG_PACKET_PROC
OCSD_CUST_DCD_PKT_CB_USE_MON
OCSD_CUST_DCD_PKT_CB_USE_SINK
OCSD_DFRMTR_FRAME_MEM_ALIGN
OCSD_DFRMTR_FRAME_SIZE
OCSD_DFRMTR_HAS_FSYNCS
OCSD_DFRMTR_HAS_HSYNCS
OCSD_DFRMTR_PACKED_RAW_OUT
OCSD_DFRMTR_RESET_ON_4X_FSYNC
OCSD_DFRMTR_UNPACKED_RAW_OUT
OCSD_DFRMTR_VALID_MASK
OCSD_LIB_NAME
OCSD_LIB_SHORT_NAME
OCSD_MAX_VA_BITSIZE
OCSD_OPFLG_CHK_RANGE_CONTINUE
OCSD_OPFLG_COMP_MODE_MASK
OCSD_OPFLG_N_UNCOND_DIR_BR_CHK
OCSD_OPFLG_PKTDEC_COMMON
OCSD_OPFLG_PKTDEC_ERROR_BAD_PKTS
OCSD_OPFLG_PKTDEC_HALT_BAD_PKTS
OCSD_OPFLG_PKTPROC_COMMON
OCSD_OPFLG_PKTPROC_ERR_BAD_PKTS
OCSD_OPFLG_PKTPROC_NOFWD_BAD_PKTS
OCSD_OPFLG_PKTPROC_NOMON_BAD_PKTS
OCSD_OPFLG_PKTPROC_UNSYNC_ON_BAD_PKTS
OCSD_OPFLG_STRICT_N_UNCOND_BR_CHK
OCSD_STATS_REVISION
OCSD_TRC_IDX_STR
OCSD_VA_MASK
OCSD_VER_MAJOR
OCSD_VER_MINOR
OCSD_VER_NUM
OCSD_VER_PATCH
OCSD_VER_STRING
PRIX8
PRIX16
PRIX32
PRIX64
PRIXFAST8
PRIXFAST16
PRIXFAST32
PRIXFAST64
PRIXLEAST8
PRIXLEAST16
PRIXLEAST32
PRIXLEAST64
PRIXMAX
PRIXPTR
PRId8
PRId16
PRId32
PRId64
PRIdFAST8
PRIdFAST16
PRIdFAST32
PRIdFAST64
PRIdLEAST8
PRIdLEAST16
PRIdLEAST32
PRIdLEAST64
PRIdMAX
PRIdPTR
PRIi8
PRIi16
PRIi32
PRIi64
PRIiFAST8
PRIiFAST16
PRIiFAST32
PRIiFAST64
PRIiLEAST8
PRIiLEAST16
PRIiLEAST32
PRIiLEAST64
PRIiMAX
PRIiPTR
PRIo8
PRIo16
PRIo32
PRIo64
PRIoFAST8
PRIoFAST16
PRIoFAST32
PRIoFAST64
PRIoLEAST8
PRIoLEAST16
PRIoLEAST32
PRIoLEAST64
PRIoMAX
PRIoPTR
PRIu8
PRIu16
PRIu32
PRIu64
PRIuFAST8
PRIuFAST16
PRIuFAST32
PRIuFAST64
PRIuLEAST8
PRIuLEAST16
PRIuLEAST32
PRIuLEAST64
PRIuMAX
PRIuPTR
PRIx8
PRIx16
PRIx32
PRIx64
PRIxFAST8
PRIxFAST16
PRIxFAST32
PRIxFAST64
PRIxLEAST8
PRIxLEAST16
PRIxLEAST32
PRIxLEAST64
PRIxMAX
PRIxPTR
PTRDIFF_MAX
PTRDIFF_MIN
SCNd8
SCNd16
SCNd32
SCNd64
SCNdFAST8
SCNdFAST16
SCNdFAST32
SCNdFAST64
SCNdLEAST8
SCNdLEAST16
SCNdLEAST32
SCNdLEAST64
SCNdMAX
SCNdPTR
SCNi8
SCNi16
SCNi32
SCNi64
SCNiFAST8
SCNiFAST16
SCNiFAST32
SCNiFAST64
SCNiLEAST8
SCNiLEAST16
SCNiLEAST32
SCNiLEAST64
SCNiMAX
SCNiPTR
SCNo8
SCNo16
SCNo32
SCNo64
SCNoFAST8
SCNoFAST16
SCNoFAST32
SCNoFAST64
SCNoLEAST8
SCNoLEAST16
SCNoLEAST32
SCNoLEAST64
SCNoMAX
SCNoPTR
SCNu8
SCNu16
SCNu32
SCNu64
SCNuFAST8
SCNuFAST16
SCNuFAST32
SCNuFAST64
SCNuLEAST8
SCNuLEAST16
SCNuLEAST32
SCNuLEAST64
SCNuMAX
SCNuPTR
SCNx8
SCNx16
SCNx32
SCNx64
SCNxFAST8
SCNxFAST16
SCNxFAST32
SCNxFAST64
SCNxLEAST8
SCNxLEAST16
SCNxLEAST32
SCNxLEAST64
SCNxMAX
SCNxPTR
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
SWT_ID_VALID_MASK
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_INTTYPES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_C23_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C23
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C23
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2Y
__GLIBC_USE_ISOC23
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__OFF_T_MATCHES_OFF64_T
__PRI64_PREFIX
__PRIPTR_PREFIX
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_TIME_BITS64
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
____gwchar_t_defined
__glibc_c99_flexarr_available
_event_t_EVENT_NUMBERED
_event_t_EVENT_TRIGGER
_event_t_EVENT_UNKNOWN
_hw_event_feat_HwEvent_Enabled
< HW event present and enabled - ignore Feat regs, assume hwev_mast value valid
_hw_event_feat_HwEvent_Unknown_Disabled
< status of HW event features not known - assume not present or disabled
_hw_event_feat_HwEvent_UseRegisters
< Feature Register values and enable bits used to determine HW event trace status
_memtrans_t_OCSD_MEM_TRANS_COMMIT
< Transactional memory sequence valid.
_memtrans_t_OCSD_MEM_TRANS_FAIL
< Transactional memory sequence failed - operations since start of transaction have been unwound.
_memtrans_t_OCSD_MEM_TRANS_START
< Trace after this packet is part of a transactional memory sequence
_memtrans_t_OCSD_MEM_TRANS_TRACE_INIT
< Trace started while PE in transactional state
_ocsd_arch_version_ARCH_AA64
< Min v8r3 plus additional AA64 PE features
_ocsd_arch_version_ARCH_CUSTOM
< None ARM, custom architecture
_ocsd_arch_version_ARCH_UNKNOWN
< unknown architecture
_ocsd_arch_version_ARCH_V7
< V7 architecture
_ocsd_arch_version_ARCH_V8
< V8 architecture
_ocsd_arch_version_ARCH_V8_max
_ocsd_arch_version_ARCH_V8r3
< V8.3 architecture
_ocsd_armv7_exception_Excp_AsyncDAbort
_ocsd_armv7_exception_Excp_CMBusFault
_ocsd_armv7_exception_Excp_CMDebugMonitor
_ocsd_armv7_exception_Excp_CMHardFault
_ocsd_armv7_exception_Excp_CMIRQn
_ocsd_armv7_exception_Excp_CMMemManage
_ocsd_armv7_exception_Excp_CMNMI
_ocsd_armv7_exception_Excp_CMPendSV
_ocsd_armv7_exception_Excp_CMSysTick
_ocsd_armv7_exception_Excp_CMUsageFault
_ocsd_armv7_exception_Excp_DebugHalt
_ocsd_armv7_exception_Excp_FIQ
_ocsd_armv7_exception_Excp_Generic
_ocsd_armv7_exception_Excp_Hyp
_ocsd_armv7_exception_Excp_IRQ
_ocsd_armv7_exception_Excp_Jazelle
_ocsd_armv7_exception_Excp_NoException
_ocsd_armv7_exception_Excp_PrefAbort
_ocsd_armv7_exception_Excp_Reserved
_ocsd_armv7_exception_Excp_Reset
_ocsd_armv7_exception_Excp_SMC
_ocsd_armv7_exception_Excp_SVC
_ocsd_armv7_exception_Excp_SyncDataAbort
_ocsd_armv7_exception_Excp_ThumbEECheckFail
_ocsd_armv7_exception_Excp_Undef
_ocsd_atm_val_ATOM_E
_ocsd_atm_val_ATOM_N
_ocsd_c_api_cb_types_OCSD_C_API_CB_PKT_MON
Attach to the packet processor primary packet output (CB fn is FnDefPktDataIn)
_ocsd_c_api_cb_types_OCSD_C_API_CB_PKT_SINK
_ocsd_core_profile_profile_CortexA
< Cortex-A profile
_ocsd_core_profile_profile_CortexM
< Cortex-M profile
_ocsd_core_profile_profile_CortexR
< Cortex-R profile
_ocsd_core_profile_profile_Custom
< None ARM, custom arch profile
_ocsd_core_profile_profile_Unknown
< Unknown profile
_ocsd_datapath_op_t_OCSD_OP_DATA
< Standard index + data packet
_ocsd_datapath_op_t_OCSD_OP_EOT
< End of available trace data. No data packet.
_ocsd_datapath_op_t_OCSD_OP_FLUSH
< Flush existing data where possible, retain decode state. No data packet.
_ocsd_datapath_op_t_OCSD_OP_RESET
< Reset decode state - drop any existing partial data. No data packet.
_ocsd_datapath_resp_t_OCSD_RESP_CONT
< Continue processing
_ocsd_datapath_resp_t_OCSD_RESP_ERR_CONT
< Continue processing : a component logged an error.
_ocsd_datapath_resp_t_OCSD_RESP_ERR_WAIT
< Pause processing : a component logged an error.
_ocsd_datapath_resp_t_OCSD_RESP_FATAL_INVALID_DATA
< Processing Fatal Error : invalid trace data
_ocsd_datapath_resp_t_OCSD_RESP_FATAL_INVALID_OP
< Processing Fatal Error : invalid data path operation.
_ocsd_datapath_resp_t_OCSD_RESP_FATAL_INVALID_PARAM
< Processing Fatal Error : invalid parameter in datapath call.
_ocsd_datapath_resp_t_OCSD_RESP_FATAL_NOT_INIT
< Processing Fatal Error : component unintialised.
_ocsd_datapath_resp_t_OCSD_RESP_FATAL_SYS_ERR
< Processing Fatal Error : internal system error.
_ocsd_datapath_resp_t_OCSD_RESP_WAIT
< Pause processing
_ocsd_datapath_resp_t_OCSD_RESP_WARN_CONT
< Continue processing : a component logged a warning.
_ocsd_datapath_resp_t_OCSD_RESP_WARN_WAIT
< Pause processing : a component logged a warning.
_ocsd_dcd_tree_src_t_OCSD_TRC_SRC_FRAME_FORMATTED
< input source is frame formatted.
_ocsd_dcd_tree_src_t_OCSD_TRC_SRC_SINGLE
< input source is from a single protocol generator.
_ocsd_err_severity_t_OCSD_ERR_SEV_ERROR
< Most severe error - perhaps fatal.
_ocsd_err_severity_t_OCSD_ERR_SEV_INFO
< Information only message. Use for debugging code or suspect input data.
_ocsd_err_severity_t_OCSD_ERR_SEV_NONE
< No error logging.
_ocsd_err_severity_t_OCSD_ERR_SEV_WARN
< Warning level. Inconsistent or incorrect data seen but can carry on decode processing
_ocsd_err_t_OCSD_ERR_ATTACH_COMP_NOT_FOUND
< 12 Cannot detach - component not found.
_ocsd_err_t_OCSD_ERR_ATTACH_INVALID_PARAM
< 11 Cannot attach - invalid parameter.
_ocsd_err_t_OCSD_ERR_ATTACH_TOO_MANY
< 10 Cannot attach - attach device limit reached.
_ocsd_err_t_OCSD_ERR_BAD_DECODE_IMAGE
< 46 Inconsistencies detected between trace and decode image (e.g. not taken unconditional instructions)
_ocsd_err_t_OCSD_ERR_BAD_DECODE_PKT
< 25 reserved or unknown packet in decoder.
_ocsd_err_t_OCSD_ERR_BAD_HANDLE
< 5 Invalid handle passed to component.
_ocsd_err_t_OCSD_ERR_BAD_PACKET_SEQ
< 19 Bad packet sequence
_ocsd_err_t_OCSD_ERR_COMMIT_PKT_OVERRUN
< 26 overrun in commit packet stack - tried to commit more than available
_ocsd_err_t_OCSD_ERR_DATA_DECODE_FATAL
< 16 A decoder in the data path has returned a fatal error.
_ocsd_err_t_OCSD_ERR_DCDREG_NAME_REPEAT
< 39 attempted to register a decoder with the same name as another one
_ocsd_err_t_OCSD_ERR_DCDREG_NAME_UNKNOWN
< 40 attempted to find a decoder with a name that is not known in the library
_ocsd_err_t_OCSD_ERR_DCDREG_TOOMANY
< 42 attempted to register too many custom decoders
_ocsd_err_t_OCSD_ERR_DCDREG_TYPE_UNKNOWN
< 41 attempted to find a decoder with a type that is not known in the library
_ocsd_err_t_OCSD_ERR_DCDT_NO_FORMATTER
< 29 No formatter in use - operation not valid.
_ocsd_err_t_OCSD_ERR_DCD_INTERFACE_UNUSED
< 43 Attempt to connect or use and interface not supported by this decoder.
_ocsd_err_t_OCSD_ERR_DFMTR_BAD_FHSYNC
< 18 Bad frame or half frame sync in trace deformatter
_ocsd_err_t_OCSD_ERR_DFMTR_NOTCONTTRACE
< 17 Trace input to deformatter none-continuous
_ocsd_err_t_OCSD_ERR_FAIL
< 1 General systemic failure.
_ocsd_err_t_OCSD_ERR_FILE_ERROR
< 8 File access error
_ocsd_err_t_OCSD_ERR_HW_CFG_UNSUPP
< 23 Programmed trace configuration not supported by decoder.
_ocsd_err_t_OCSD_ERR_INVALID_ID
< 4 Invalid CoreSight Trace Source ID.
_ocsd_err_t_OCSD_ERR_INVALID_OPCODE
< 44 Opcode found while decoding program memory is illegal
_ocsd_err_t_OCSD_ERR_INVALID_PARAM_TYPE
< 7 Type mismatch on abstract interface
_ocsd_err_t_OCSD_ERR_INVALID_PARAM_VAL
< 6 Invalid value parameter passed to component.
_ocsd_err_t_OCSD_ERR_INVALID_PCKT_HDR
< 20 Invalid packet header
_ocsd_err_t_OCSD_ERR_I_RANGE_LIMIT_OVERRUN
< 45 An optional limit on consecutive instructions in range during decode has been exceeded.
_ocsd_err_t_OCSD_ERR_LAST
_ocsd_err_t_OCSD_ERR_MEM
< 2 Internal memory allocation error.
_ocsd_err_t_OCSD_ERR_MEM_ACC_BAD_LEN
< 34 Memory accessor returned a bad read length value (larger than requested
_ocsd_err_t_OCSD_ERR_MEM_ACC_FILE_DIFF_RANGE
< 32 Attempt to re-use the same memory access file for a different address range
_ocsd_err_t_OCSD_ERR_MEM_ACC_FILE_NOT_FOUND
< 31 Memory access file could not be opened
_ocsd_err_t_OCSD_ERR_MEM_ACC_OVERLAP
< 30 Attempted to set an overlapping range in memory access map
_ocsd_err_t_OCSD_ERR_MEM_ACC_RANGE_INVALID
< 33 Address range in accessor set to invalid values
_ocsd_err_t_OCSD_ERR_MEM_NACC
< 27 unable to access required memory address
_ocsd_err_t_OCSD_ERR_NOT_INIT
< 3 Component not initialised or initialisation failure.
_ocsd_err_t_OCSD_ERR_NO_PROTOCOL
< 9 Trace protocol unsupported
_ocsd_err_t_OCSD_ERR_PKT_INTERP_FAIL
< 21 Interpreter failed - cannot recover - bad data or sequence
_ocsd_err_t_OCSD_ERR_RDR_FILE_NOT_FOUND
< 13 source reader - file not found.
_ocsd_err_t_OCSD_ERR_RDR_INVALID_INIT
< 14 source reader - invalid initialisation parameter.
_ocsd_err_t_OCSD_ERR_RDR_NO_DECODER
< 15 source reader - not trace decoder set.
_ocsd_err_t_OCSD_ERR_RET_STACK_OVERFLOW
< 28 internal return stack overflow checks failed - popped more than we pushed.
_ocsd_err_t_OCSD_ERR_TEST_SNAPSHOT_PARSE
< 35 test snapshot file parse error
_ocsd_err_t_OCSD_ERR_TEST_SNAPSHOT_PARSE_INFO
< 36 test snapshot file parse information
_ocsd_err_t_OCSD_ERR_TEST_SNAPSHOT_READ
< 37 test snapshot reader error
_ocsd_err_t_OCSD_ERR_TEST_SS_TO_DECODER
< 38 test snapshot to decode tree conversion error
_ocsd_err_t_OCSD_ERR_UNSUPPORTED_ISA
< 22 ISA not supported in decoder.
_ocsd_err_t_OCSD_ERR_UNSUPP_DECODE_PKT
< 24 Packet not supported in decoder
_ocsd_err_t_OCSD_OK
< 0 No Error.
_ocsd_etmv3_pkt_type_ETM3_PKT_A_SYNC
_ocsd_etmv3_pkt_type_ETM3_PKT_BAD_SEQUENCE
!< invalid sequence for packet type
_ocsd_etmv3_pkt_type_ETM3_PKT_BAD_TRACEMODE
!< invalid packet type for this trace mode.
_ocsd_etmv3_pkt_type_ETM3_PKT_BRANCH_ADDRESS
_ocsd_etmv3_pkt_type_ETM3_PKT_BRANCH_OR_BYPASS_EOT
_ocsd_etmv3_pkt_type_ETM3_PKT_CONTEXT_ID
_ocsd_etmv3_pkt_type_ETM3_PKT_CYCLE_COUNT
_ocsd_etmv3_pkt_type_ETM3_PKT_DATA_SUPPRESSED
_ocsd_etmv3_pkt_type_ETM3_PKT_EXCEPTION_ENTRY
_ocsd_etmv3_pkt_type_ETM3_PKT_EXCEPTION_EXIT
_ocsd_etmv3_pkt_type_ETM3_PKT_IGNORE
_ocsd_etmv3_pkt_type_ETM3_PKT_INCOMPLETE_EOT
!< flushing incomplete/empty packet at end of trace.
_ocsd_etmv3_pkt_type_ETM3_PKT_I_SYNC
_ocsd_etmv3_pkt_type_ETM3_PKT_I_SYNC_CYCLE
_ocsd_etmv3_pkt_type_ETM3_PKT_NOERROR
!< no error in packet - supplimentary data.
_ocsd_etmv3_pkt_type_ETM3_PKT_NORM_DATA
_ocsd_etmv3_pkt_type_ETM3_PKT_NOTSYNC
!< no sync found yet
_ocsd_etmv3_pkt_type_ETM3_PKT_OOO_ADDR_PLC
_ocsd_etmv3_pkt_type_ETM3_PKT_OOO_DATA
_ocsd_etmv3_pkt_type_ETM3_PKT_P_HDR
_ocsd_etmv3_pkt_type_ETM3_PKT_RESERVED
!< packet type reserved.
_ocsd_etmv3_pkt_type_ETM3_PKT_STORE_FAIL
_ocsd_etmv3_pkt_type_ETM3_PKT_TIMESTAMP
_ocsd_etmv3_pkt_type_ETM3_PKT_TRIGGER
_ocsd_etmv3_pkt_type_ETM3_PKT_VAL_NOT_TRACED
_ocsd_etmv3_pkt_type_ETM3_PKT_VMID
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F1
!< b0111xxxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F2
!< b10xxxxxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F3
!< b000101xx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F4
!< b0110xxxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F5
!< b11111xxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F6
!< b1111011x
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DADDR_P1_F7
!< b11110101
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DEVENT
!< b00000100
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DNUM_DS_MKR
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DSUPPRESSION
!< b00000011
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DTIMESTAMP
!< b00000010
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DTRACE_INFO
!< b00000001
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DUNNUM_DS_MKR
!< b00000001
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DVAL_P2_F1
!< b0010xxxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DVAL_P2_F2
!< b00110xxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DVAL_P2_F3
!< b010xxxxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DVAL_P2_F4
!< b000100xx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DVAL_P2_F5
!< b00011xxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_DVAL_P2_F6
!< b00111xxx
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_ASYNC
!< b00000000
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_BAD_SEQUENCE
!< invalid sequence for packet type
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_BAD_TRACEMODE
!< invalid packet type for this trace mode.
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_DISCARD
!< b00000011
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_EXTENSION
!< b00000000
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_INCOMPLETE_EOT
!< flushing incomplete packet at end of trace.
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_NOTSYNC
!< no sync found yet
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_NO_ERR_TYPE
!< error packet has no header based type. Use with unknown/res packet types.
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_NO_HEADER
!< waiting for a header byte
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_OVERFLOW
!< b00000101
_ocsd_etmv4_d_pkt_type_ETM4_PKT_D_RESERVED
!< packet type reserved.
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_ITE
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_PE_RESET
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_L_32IS0
< b10110110
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_L_32IS1
< b10110111
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_L_64IS0
< b10111000
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_L_64IS1
< b10111001
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_MATCH
< b101100xx
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_S_IS0
< b10110100
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_SRC_ADDR_S_IS1
< b10110101
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_TRANS_COMMIT
b00001010 (ETE only)
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_TRANS_FAIL
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_TRANS_ST
b00001001 (ETE only)
_ocsd_etmv4_i_pkt_type_ETE_PKT_I_TS_MARKER
< b10001000
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_CTXT_L_32IS0
< b10000010
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_CTXT_L_32IS1
< b10000011
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_CTXT_L_64IS0
< b10000101
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_CTXT_L_64IS1
< b10000110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_L_32IS0
< b10011010
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_L_32IS1
< b10011011
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_L_64IS0
< b10011101
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_L_64IS1
< b10011110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_MATCH
< b10010000 to b10010010 0x92
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_S_IS0
< b10010101
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ADDR_S_IS1
< b10010110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ASYNC
!< b00000000
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ATOM_F1
< b1111011x to 0xF7
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ATOM_F2
< b110110xx to 0xDB
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ATOM_F3
< b11111xxx to 0xFF
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ATOM_F4
< b110111xx to 0xDF
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ATOM_F5
< b11010101 - b11010111 0xD5 - 0xD7, b11110101 0xF5
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_ATOM_F6
< b11000000 - b11010100 0xC0 - 0xD4, b11100000 - b11110100 0xE0 - 0xF4
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_BAD_SEQUENCE
< invalid sequence for packet type.
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_BAD_TRACEMODE
< invalid packet type for this trace mode.
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CANCEL_F1
< b00101110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CANCEL_F2
< b001101xx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CANCEL_F3
< b00111xxx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CANCEL_F1_MISPRED
< b00101111
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CCNT_F1
< b0000111x
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CCNT_F2
< b0000110x
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CCNT_F3
< b0001xxxx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COMMIT
< b00101101
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_FLUSH
< b01000011
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_I_F1
< b01101100
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_I_F2
< b01000000 - b01000010
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_I_F3
< b01101101
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_RES_F1
< b011010xx, b0110111x 0x68-0x6B, 0x6e-0x6F
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_RES_F2
< b0100100x, b01001010, b0100110x, b01001110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_RES_F3
< b0101xxxx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_COND_RES_F4
< b0100010x, b01000110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_CTXT
< b1000000x
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_DISCARD
!< b00000011
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_EVENT
< b01110001 to 0x01111111 0x7F
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_EXCEPT
< b00000110
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_EXCEPT_RTN
< b00000111 (ETE invalid)
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_EXTENSION
< b00000000
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_FUNC_RET
< b00000101 (V8M only)
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_IGNORE
< b01110000
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_INCOMPLETE_EOT
< flushing incomplete/empty packet at end of trace.
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_MISPREDICT
< b001100xx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_NOTSYNC
< no sync found yet.
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_NO_ERR_TYPE
< error type not set for packet.
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_NUM_DS_MKR
< b00100xxx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_OVERFLOW
!< b00000101
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_Q
< b1010xxxx
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_RESERVED
< packet type reserved.
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_RESERVED_CFG
< packet type reserved for current configuration
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_TIMESTAMP
< b0000001x
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_TRACE_INFO
< b00000001
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_TRACE_ON
< b00000100
_ocsd_etmv4_i_pkt_type_ETM4_PKT_I_UNNUM_DS_MKR
< b00101000 to b00101100 0x2C
_ocsd_ex_level_ocsd_EL0
< EL0
_ocsd_ex_level_ocsd_EL1
< EL1
_ocsd_ex_level_ocsd_EL2
< EL2
_ocsd_ex_level_ocsd_EL3
< EL3
_ocsd_ex_level_ocsd_EL_unknown
< EL unknown / unsupported in trace
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_ADDR_NACC
< tracing in inaccessible memory area
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_ADDR_UNKNOWN
< address currently unknown - need address packet update
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_CUSTOM
< Fully custom packet type - used by none-ARM architecture decoders
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_CYCLE_COUNT
< Cycle count - cycles since last cycle count value - associated with a preceding instruction range.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_EO_TRACE
< end of the available trace in the buffer.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_EVENT
< Event - trigger or numbered event
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_EXCEPTION
< exception - start address may be exception target, end address may be preferred ret addr.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_EXCEPTION_RET
< expection return
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_INSTRUMENTATION
< PE instrumentation trace - PE generated SW trace, application dependent protocol.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_INSTR_RANGE
< traced N consecutive instructions from addr (no intervening events or data elements), may have data assoc key
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_I_RANGE_NOPATH
< traced N instructions in a range, but incomplete information as to program execution path from start to end of range
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_MEMTRANS
< Trace indication of transactional memory operations.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_NO_SYNC
< Waiting for sync - either at start of decode, or after overflow / bad packet
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_PE_CONTEXT
< PE status update / change (arch, ctxtid, vmid etc).
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_SWTRACE
< Software trace packet - may contain data payload. STM / ITM hardware trace with channel protocol
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_SYNC_MARKER
< Synchronisation marker - marks position in stream of an element that is output later.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_TIMESTAMP
< Timestamp - preceding elements happeded before this time.
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_TRACE_ON
< Start of trace - beginning of elements or restart after discontinuity (overflow, trace filtering).
_ocsd_gen_trc_elem_t_OCSD_GEN_TRC_ELEM_UNKNOWN
< Unknown trace element - default value or indicate error in stream to client
_ocsd_iSync_reason_iSync_DebugExit
_ocsd_iSync_reason_iSync_Periodic
_ocsd_iSync_reason_iSync_TraceEnable
_ocsd_iSync_reason_iSync_TraceRestartAfterOverflow
_ocsd_instr_subtype_OCSD_S_INSTR_BR_LINK
< branch with link
_ocsd_instr_subtype_OCSD_S_INSTR_NONE
< no subtype set
_ocsd_instr_subtype_OCSD_S_INSTR_V7_IMPLIED_RET
< v7 instruction which could imply return e.g. MOV PC, LR; POP { ,pc}
_ocsd_instr_subtype_OCSD_S_INSTR_V8_ERET
< v8 eret instruction - subtype of BR_INDIRECT
_ocsd_instr_subtype_OCSD_S_INSTR_V8_RET
< v8 ret instruction - subtype of BR_INDIRECT
_ocsd_instr_type_OCSD_INSTR_BR
< Immediate Branch instruction
_ocsd_instr_type_OCSD_INSTR_BR_INDIRECT
< Indirect Branch instruction
_ocsd_instr_type_OCSD_INSTR_DSB_DMB
< Barrier : DSB or DMB instruction
_ocsd_instr_type_OCSD_INSTR_ISB
< Barrier : ISB instruction
_ocsd_instr_type_OCSD_INSTR_OTHER
< Other instruction - not significant for waypoints.
_ocsd_instr_type_OCSD_INSTR_TSTART
< PE Arch feature FEAT_TME - TSTART instruction
_ocsd_instr_type_OCSD_INSTR_WFI_WFE
< WFI or WFE traced as direct branch
_ocsd_isa_ocsd_isa_aarch64
< V8 AArch64
_ocsd_isa_ocsd_isa_arm
< V7 ARM 32, V8 AArch32
_ocsd_isa_ocsd_isa_custom
< Instruction set - custom arch decoder
_ocsd_isa_ocsd_isa_jazelle
< Jazelle - unsupported in trace
_ocsd_isa_ocsd_isa_tee
< Thumb EE - unsupported
_ocsd_isa_ocsd_isa_thumb2
< Thumb2 -> 16/32 bit instructions
_ocsd_isa_ocsd_isa_unknown
< ISA not yet known
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_ANY
< Any sec level / EL - live system use current EL + sec state
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL2
< Non Secure EL2
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL3
< Secure EL3
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL1N
< Non Secure EL1/0
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL1R
< Realm EL1/0
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL1S
< Secure EL1/0
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL2R
< Realm EL2
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_EL2S
< Secure EL2
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_N
< Any Non Secure
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_NONE
< Mem space unknown / not yet set
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_R
< Any Realm
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_ROOT
< Root
_ocsd_mem_space_acc_t_OCSD_MEM_SPACE_S
< Any Secure
_ocsd_pkt_atm_type_ATOM_PATTERN
< set atom packet using pattern supplied
_ocsd_pkt_atm_type_ATOM_REPEAT
< set atom packet using repeat value (convert to pattern)
_ocsd_pkt_va_size_VA_32BIT
_ocsd_pkt_va_size_VA_64BIT
_ocsd_ptm_pkt_type_PTM_PKT_ATOM
!< atom waypoint packet.
_ocsd_ptm_pkt_type_PTM_PKT_A_SYNC
!< Alignment Synchronisation.
_ocsd_ptm_pkt_type_PTM_PKT_BAD_SEQUENCE
!< invalid sequence for packet type
_ocsd_ptm_pkt_type_PTM_PKT_BRANCH_ADDRESS
!< Branch address with optional exception.
_ocsd_ptm_pkt_type_PTM_PKT_BRANCH_OR_BYPASS_EOT
_ocsd_ptm_pkt_type_PTM_PKT_CONTEXT_ID
!< context id packet.
_ocsd_ptm_pkt_type_PTM_PKT_EXCEPTION_RET
!< exception return.
_ocsd_ptm_pkt_type_PTM_PKT_IGNORE
!< ignore packet.
_ocsd_ptm_pkt_type_PTM_PKT_INCOMPLETE_EOT
!< flushing incomplete packet at end of trace.
_ocsd_ptm_pkt_type_PTM_PKT_I_SYNC
!< Instruction sync with address.
_ocsd_ptm_pkt_type_PTM_PKT_NOERROR
!< no error base type packet.
_ocsd_ptm_pkt_type_PTM_PKT_NOTSYNC
!< no sync found yet
_ocsd_ptm_pkt_type_PTM_PKT_RESERVED
!< Reserved packet encoding
_ocsd_ptm_pkt_type_PTM_PKT_TIMESTAMP
!< timestamp packet.
_ocsd_ptm_pkt_type_PTM_PKT_TPIU_PAD_EOB
_ocsd_ptm_pkt_type_PTM_PKT_TRIGGER
!< trigger packet
_ocsd_ptm_pkt_type_PTM_PKT_VMID
!< VMID packet
_ocsd_ptm_pkt_type_PTM_PKT_WPOINT_UPDATE
!< Waypoint update.
_ocsd_sec_level_ocsd_sec_nonsecure
< Core is in non-secure state
_ocsd_sec_level_ocsd_sec_realm
< PE FEAT_RME: Core is in realm state.
_ocsd_sec_level_ocsd_sec_root
< PE FEAT_RME: Core is in root state.
_ocsd_sec_level_ocsd_sec_secure
< Core is in secure state
_ocsd_stm_pkt_type_STM_PKT_ASYNC
< Alignment synchronisation packet
_ocsd_stm_pkt_type_STM_PKT_BAD_SEQUENCE
< Incorrect protocol sequence
_ocsd_stm_pkt_type_STM_PKT_C8
< Set lower 8 bits of current channel
_ocsd_stm_pkt_type_STM_PKT_C16
< Set current channel
_ocsd_stm_pkt_type_STM_PKT_D4
< 4 bit data payload packet
_ocsd_stm_pkt_type_STM_PKT_D8
< 8 bit data payload packet
_ocsd_stm_pkt_type_STM_PKT_D16
< 16 bit data payload packet
_ocsd_stm_pkt_type_STM_PKT_D32
< 32 bit data payload packet
_ocsd_stm_pkt_type_STM_PKT_D64
< 64 bit data payload packet
_ocsd_stm_pkt_type_STM_PKT_FLAG
< Flag packet
_ocsd_stm_pkt_type_STM_PKT_FREQ
< Frequency packet
_ocsd_stm_pkt_type_STM_PKT_GERR
< Global error packet - protocol error but unknown which master had error
_ocsd_stm_pkt_type_STM_PKT_INCOMPLETE_EOT
< Incomplete packet flushed at end of trace.
_ocsd_stm_pkt_type_STM_PKT_M8
< Set current master
_ocsd_stm_pkt_type_STM_PKT_MERR
< Master error packet - current master detected an error (e.g. dropped trace)
_ocsd_stm_pkt_type_STM_PKT_NOTSYNC
< Not synchronised
_ocsd_stm_pkt_type_STM_PKT_NO_ERR_TYPE
< No error in error packet marker.
_ocsd_stm_pkt_type_STM_PKT_NULL
< Null packet
_ocsd_stm_pkt_type_STM_PKT_RESERVED
< Reserved packet header / not supported by CS-STM
_ocsd_stm_pkt_type_STM_PKT_TRIG
< Trigger event packet.
_ocsd_stm_pkt_type_STM_PKT_VERSION
< Version packet
_ocsd_stm_ts_type_STM_TS_GREY
< TS encoding grey coded.
_ocsd_stm_ts_type_STM_TS_NATBINARY
< TS encoding natural binary
_ocsd_stm_ts_type_STM_TS_UNKNOWN
< TS encoding unknown at present.
_ocsd_trace_protocol_t_OCSD_PROTOCOL_BUILTIN_END
< Invalid protocol - built-in protocol types end marker
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_0
< Values from this onwards are assigned to external registered decoders
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_1
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_2
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_3
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_4
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_5
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_6
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_7
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_8
_ocsd_trace_protocol_t_OCSD_PROTOCOL_CUSTOM_9
_ocsd_trace_protocol_t_OCSD_PROTOCOL_END
< Invalid protocol - protocol types end marker
_ocsd_trace_protocol_t_OCSD_PROTOCOL_ETE
< ETE trace protocol decoder
_ocsd_trace_protocol_t_OCSD_PROTOCOL_ETMV3
< ETMV3 instruction and data trace protocol decoder.
_ocsd_trace_protocol_t_OCSD_PROTOCOL_ETMV4D
< ETMV4 data trace protocol decoder.
_ocsd_trace_protocol_t_OCSD_PROTOCOL_ETMV4I
< ETMV4 instruction trace protocol decoder.
_ocsd_trace_protocol_t_OCSD_PROTOCOL_PTM
< PTM program flow instruction trace protocol decoder.
_ocsd_trace_protocol_t_OCSD_PROTOCOL_STM
< STM system trace protocol decoder.
_ocsd_trace_protocol_t_OCSD_PROTOCOL_UNKNOWN
< Protocol unknown
_rcdtl_rawframe_elem_t_OCSD_FRM_FSYNC
< Frame Sync Data
_rcdtl_rawframe_elem_t_OCSD_FRM_HSYNC
< HSYNC data
_rcdtl_rawframe_elem_t_OCSD_FRM_ID_DATA
< unpacked data for ID
_rcdtl_rawframe_elem_t_OCSD_FRM_NONE
< None data operation on data path. (EOT etc.)
_rcdtl_rawframe_elem_t_OCSD_FRM_PACKED
< Raw packed frame data
_trace_on_reason_t_TRACE_ON_EX_DEBUG
< Trace restarted due to debug exit
_trace_on_reason_t_TRACE_ON_NORMAL
< Trace on at start of trace or filtering discontinuity
_trace_on_reason_t_TRACE_ON_OVERFLOW
< Trace on due to prior trace overflow discontinuity
_trace_sync_marker_t_ELEM_MARKER_TS
< Marker for timestamp element
_unsync_info_t_UNSYNC_BAD_IMAGE
< bad program image - resync to restart.
_unsync_info_t_UNSYNC_BAD_PACKET
< bad packet at input - resync to restart.
_unsync_info_t_UNSYNC_DISCARD
< specl trace discard - need to re-sync.
_unsync_info_t_UNSYNC_EOT
< end of trace - no additional info
_unsync_info_t_UNSYNC_INIT_DECODER
< decoder intialisation - start of trace.
_unsync_info_t_UNSYNC_OVERFLOW
< overflow packet - need to re-sync / end of trace after overflow.
_unsync_info_t_UNSYNC_RESET_DECODER
< decoder reset.
_unsync_info_t_UNSYNC_UNKNOWN
< unknown /undefined

Functions§

imaxabs
imaxdiv
ocsd_create_dcd_tree
Create a decode tree.
ocsd_cust_protocol_to_str
Get a string representation of a custom protocol packet.
ocsd_def_errlog_config_output
Configure the output logger. Choose STDOUT, STDERR and/or log to file. Optionally provide a log file name.
ocsd_def_errlog_init
Initialise the library error logger.
ocsd_def_errlog_msgout
Print a message via the library output printer - if enabled.
ocsd_def_errlog_set_strprint_cb
Configure the library default error logger to send all strings it is outputting back to the client to allow printing within the client application. This is in additional to any other log destinations set in ocsd_def_errlog_init().
ocsd_deregister_decoders
Clear all registered decoders - library cleanup
ocsd_destroy_dcd_tree
Destroy a decode tree.
ocsd_dt_add_binfile_mem_acc
Add a binary file based memory range accessor to the decode tree.
ocsd_dt_add_binfile_region_mem_acc
Add a binary file based memory range accessor to the decode tree.
ocsd_dt_add_buffer_mem_acc
Add a memory buffer based memory range accessor to the decode tree.
ocsd_dt_add_callback_mem_acc
Add a memory access callback function. The decoder will call the function for opcode addresses in the address range supplied for the memory spaces covered.
ocsd_dt_add_callback_trcid_mem_acc
Add a memory access callback function. The decoder will call the function for opcode addresses in the address range supplied for the memory spaces covered.
ocsd_dt_attach_packet_callback
Attach a callback function to the packet processor.
ocsd_dt_create_decoder
Creates a decoder that is registered with the library under the supplied name. Flags determine if a full packet processor / packet decoder pair or packet processor only is created. Uses the supplied configuration structure.
ocsd_dt_get_decode_stats
Get the stats block for the channel indicated. Caller must check p_stats_block->version to esure that the block is filled in a compatible manner.
ocsd_dt_process_data
Input trace data into the decoder.
ocsd_dt_remove_decoder
Remove a decoder from the tree and destroy it.
ocsd_dt_remove_mem_acc
Remove a memory accessor by address and memory space.
ocsd_dt_reset_decode_stats
Reset the stats block for the chosens decode channel. stats block is reset independently of the decoder reset to allow counts across multiple decode runs.
ocsd_dt_set_gen_elem_outfn
Set the trace element output callback function.
ocsd_dt_set_gen_elem_printer
Set a library printer on the generic element output of a full decoder.
ocsd_dt_set_mem_acc_cacheing
ocsd_dt_set_pkt_protocol_printer
Attach a library printer to the packet processor. May be attached to the main packet output, or the monitor output if the main packet output is to be attached to a packet decoder in the datapath.
ocsd_dt_set_raw_frame_printer
Set a raw frame printer on the trace frame demuxer. Allows inspection of raw trace data frames for debug. Prints via the library default error logging mechanisms.
ocsd_err_str
Convert an error code into a string.
ocsd_gen_elem_init
Init a generic element with type, clearing any flags etc.
ocsd_gen_elem_str
Get a string representation of the generic trace element.
ocsd_get_last_err
returns the last error logged by the system, with the related trace byte index, trace channel id, and any error message related string. If index or channel ID are not valid these will return OCSD_BAD_TRC_INDEX and OCSD_BAD_CS_SRC_ID.
ocsd_get_version
@name Library Version API
ocsd_get_version_str
Get library version string
ocsd_pkt_str
Take a packet structure and render a string representation of the packet data.
ocsd_register_custom_decoder
Register a custom decoder with the library
ocsd_tl_log_mapped_mem_ranges
strtoimax
strtoumax
wcstoimax
wcstoumax

Type Aliases§

FnDefLoggerPrintStrCB
function pointer tyee for library default logger output to allow client to print zero terminated output string
FnDefPktDataIn
function pointer type for packet processor packet output sink, packet analyser/decoder input - generic declaration
FnDefPktDataMon
function pointer type for packet processor packet monitor sink, raw packet monitor / display input - generic declaration
FnTraceElemIn
function pointer type for decoder outputs. all protocols, generic data element input
Fn_MemAccID_CB
Callback function definition for callback function memory accessor type.
Fn_MemAcc_CB
Callback function definition for callback function memory accessor type.
__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__gwchar_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
_event_t
_hw_event_feat
HW Event trace feature Defines if the STM supports or has enabled the HW event trace feature. This may not always be able to be determined by the registers, or the feature values can override if HW event trace is to be ignored.
_memtrans_t
_ocsd_arch_version
Core Architecture Version
_ocsd_armv7_exception
_ocsd_atm_val
_ocsd_c_api_cb_types
Callback interface type when attaching monitor/sink to packet processor
_ocsd_core_profile
Core Profile
_ocsd_datapath_op_t
Trace Datapath operations.
_ocsd_datapath_resp_t
Trace Datapath responses
_ocsd_dcd_tree_src_t
Indicates if the trace source will be frame formatted or a single protocol source. Used in decode tree creation and configuration code.
_ocsd_err_severity_t
Error Severity Type
_ocsd_err_t
Library Error return type
_ocsd_etmv3_pkt_type
@name ETMv3 Packet Types @{
_ocsd_etmv4_d_pkt_type
_ocsd_etmv4_i_pkt_type
I stream packets.
_ocsd_ex_level
Exception level type
_ocsd_gen_trc_elem_t
Enum for generic element types
_ocsd_iSync_reason
Isync Reason - common to PTM and ETMv3
_ocsd_instr_subtype
instruction sub types - addiitonal information passed to the output packets for trace analysis tools.
_ocsd_instr_type
instruction types - significant for waypoint calculations
_ocsd_isa
Instruction Set Architecture type
_ocsd_mem_space_acc_t
memory space bitfield enum for available security states and exception levels used when accessing memory.
_ocsd_pkt_atm_type
_ocsd_pkt_va_size
@name Common Packet Types @{
_ocsd_ptm_pkt_type
@name PTM Packet Types @{
_ocsd_sec_level
Security level type
_ocsd_stm_pkt_type
STM protocol packet types. Contains both protocol packet types and markers for unsynced processor state and bad packet sequences.
_ocsd_stm_ts_type
STM timestamp encoding type. Extracted from STM version packet. CS-STM supports Natural binary and grey encodings.
_ocsd_trace_protocol_t
Trace Protocol Builtin Types + extern
_rcdtl_rawframe_elem_t
Raw frame element data types Data blocks types output from ITrcRawFrameIn.
_trace_on_reason_t
_trace_sync_marker_t
_unsync_info_t
dcd_tree_handle_t
Handle to decode tree
etmv3_context_t
etmv3_data_t
etmv3_isync_t
etmv4_addr_val_t
a broadcast address value.
etmv4_context_t
etmv4_trace_info_t
fnCreateCustomDecoder
Function to create a decoder instance
fnDecodeArmInstCB
callback function to connect an ARM instruction decoder Implements IInstrDecode::DecodeInstruction with addition of library context pointer.
fnDestroyCustomDecoder
Function to destroy a decoder instance indicated by decoder handle.
fnGenElemOpCB
callback function to connect into the generic element output point Implements ITrcGenElemIn::TraceElemIn with addition of library context pointer.
fnGetCSIDFromConfig
Function to extract the CoreSight Trace ID from the configuration structure.
fnLogErrorCB
callback functions to connect into the library error logging mechanism Implements ITraceErrorLog::LogError with addition of library context pointer.
fnLogMsgCB
callback functions to connect into the library error logging mechanism Implements ITraceErrorLog::LogMessage with addition of library context pointer.
fnMemAccessCB
callback function to connect the memory accessor interface Implements ITargetMemAccess::ReadTargetMemory with addition of library context pointer.
fnPacketToString
Function to convert a protocol specific trace packet to human readable string
fnPktDataSinkCB
callback function to connect to the packet sink interface, on the main decode data path - use if decoder created as packet processor only
fnPktMonCB
callback function to connect to the packet monitor interface of the packet processor Implements IPktRawDataMon::RawPacketDataMon with addition of library context pointer.
fnTraceDataIn
Raw trace data input function - a decoder must have one of these Implements ITrcDataIn with the addition of a decoder handle to provide context in the decoder.
fnUpdatePktMonFlags
Function to update the in-use flags for the packet sinks
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
ocsd_arch_profile_t
Combined architecture and profile descriptor for a core
ocsd_decode_stats_t
@name Decode statistics
ocsd_demux_stats_t
@name Demux Statistics
ocsd_ete_cfg
@name ETE config Types @{
ocsd_etmv3_cfg
ocsd_etmv3_excep
ocsd_etmv3_pkt
ocsd_etmv4_cfg
ocsd_etmv4_d_pkt
ocsd_etmv4_i_pkt
ocsd_extern_dcd_cb_fns
an instance of this is owned by the decoder, filled in by the library - allows the CB fns in the library decode tree to be called.
ocsd_extern_dcd_fact_t
set of functions and callbacks to create an extern custom decoder in the library via the C API interface. This structure is registered with the library by name and then decoders of the type can be created on the decode tree.
ocsd_extern_dcd_inst_t
Owned by the library instance object, this structure is filled in by the ocsd_extern_dcd_fact_t createDecoder() function.
ocsd_file_mem_region_t
memory region type for adding multi-region binary files to memory access interface
ocsd_generic_trace_elem
ocsd_hndl_err_log_t
ocsd_hndl_rdr_t
ocsd_instr_info
Instruction decode request structure.
ocsd_pe_context
Core(PE) context structure records current security state, exception level, VMID and ContextID for core.
ocsd_pkt_atom
ocsd_pkt_byte_sz_val
ocsd_pkt_vaddr
ocsd_ptm_cfg
ocsd_ptm_excep
ocsd_ptm_pkt
ocsd_stm_cfg
STM hardware configuration. Contains hardware register values at time of trace capture and HW event feature field to enable and control decode of STM trace stream.
ocsd_stm_pkt
STM trace packet
ocsd_swt_info_t
@name Software Trace Packets Info
ocsd_trc_index_t
ocsd_vaddr_t
ptm_context_t
trace_event_t
trace_marker_payload_t
trace_sw_ite_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
wchar_t

Unions§

_etmv4_trace_info_t
_ocsd_etmv4_i_pkt__bindgen_ty_7
! valid bits for packet elements (addresses have their own valid bits).
_ocsd_generic_trace_elem__bindgen_ty_1
! per element flags
_ocsd_generic_trace_elem__bindgen_ty_2
! packet specific payloads
_ocsd_stm_pkt__bindgen_ty_1
_ocsd_swt_info__bindgen_ty_1