trc_pkt_types_etmv4.h
Go to the documentation of this file.
/*
* \file trc_pkt_types_etmv4.h
* \brief OpenCSD : ETMv4 packet info
*
* \copyright Copyright (c) 2015,2019 ARM Limited. All Rights Reserved.
*/
/*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef ARM_TRC_PKT_TYPES_ETMV4_H_INCLUDED
#define ARM_TRC_PKT_TYPES_ETMV4_H_INCLUDED
#include "opencsd/trc_pkt_types.h"
typedef enum _ocsd_etmv4_i_pkt_type
{
/* state of decode markers */
ETM4_PKT_I_NOTSYNC = 0x200,
ETM4_PKT_I_INCOMPLETE_EOT,
ETM4_PKT_I_NO_ERR_TYPE,
/* markers for unknown/bad packets */
ETM4_PKT_I_BAD_SEQUENCE = 0x300,
ETM4_PKT_I_BAD_TRACEMODE,
ETM4_PKT_I_RESERVED,
ETM4_PKT_I_RESERVED_CFG,
/* I stream packet types. */
/* extension header. */
ETM4_PKT_I_EXTENSION = 0x00,
/* sync */
ETM4_PKT_I_TRACE_INFO = 0x01,
// timestamp
ETM4_PKT_I_TIMESTAMP = 0x02,
ETM4_PKT_I_TRACE_ON = 0x04,
ETM4_PKT_I_FUNC_RET = 0x05,
// Exceptions
ETM4_PKT_I_EXCEPT = 0x06,
ETM4_PKT_I_EXCEPT_RTN = 0x07,
/* unused encodings 0x08-0xB b00001000 to b00001011 */
/* cycle count packets */
ETM4_PKT_I_CCNT_F2 = 0x0C,
ETM4_PKT_I_CCNT_F1 = 0x0E,
ETM4_PKT_I_CCNT_F3 = 0x10,
// data synchronisation markers
ETM4_PKT_I_NUM_DS_MKR = 0x20,
ETM4_PKT_I_UNNUM_DS_MKR = 0x28,
// speculation
ETM4_PKT_I_COMMIT = 0x2D,
ETM4_PKT_I_CANCEL_F1 = 0x2E,
ETM4_PKT_I_MISPREDICT = 0x30,
ETM4_PKT_I_CANCEL_F2 = 0x34,
ETM4_PKT_I_CANCEL_F3 = 0x38,
/* conditional instruction tracing */
ETM4_PKT_I_COND_I_F2 = 0x40,
ETM4_PKT_I_COND_FLUSH = 0x43,
ETM4_PKT_I_COND_RES_F4 = 0x44,
/* unused encoding 0x47 b01000111 */
ETM4_PKT_I_COND_RES_F2 = 0x48,
/* unused encodings 0x4B,0x4F b01001011, b01001111 */
ETM4_PKT_I_COND_RES_F3 = 0x50,
/* unused encodings 0x60-0x67 b01100xxx */
ETM4_PKT_I_COND_RES_F1 = 0x68,
ETM4_PKT_I_COND_I_F1 = 0x6C,
ETM4_PKT_I_COND_I_F3 = 0x6D,
// event trace
ETM4_PKT_I_IGNORE = 0x70,
ETM4_PKT_I_EVENT = 0x71,
/* address and context */
ETM4_PKT_I_CTXT = 0x80,
ETM4_PKT_I_ADDR_CTXT_L_32IS0 = 0x82,
ETM4_PKT_I_ADDR_CTXT_L_32IS1,
/* unused encoding 0x84 b10000100 */
ETM4_PKT_I_ADDR_CTXT_L_64IS0 = 0x85,
ETM4_PKT_I_ADDR_CTXT_L_64IS1,
/* unused encoding 0x87 b10000111 */
/* unused encodings 0x88-0x8F b10001xxx */
ETM4_PKT_I_ADDR_MATCH = 0x90,
/* unused encodings 0x93-0x94 b10010011 to b10010010 */
ETM4_PKT_I_ADDR_S_IS0 = 0x95,
ETM4_PKT_I_ADDR_S_IS1,
/* unused encodings 0x97 b10010111 to b10011001 0x99 */
ETM4_PKT_I_ADDR_L_32IS0 = 0x9A,
ETM4_PKT_I_ADDR_L_32IS1,
/* unused encoding 0x9C b10011100 */
ETM4_PKT_I_ADDR_L_64IS0 = 0x9D,
ETM4_PKT_I_ADDR_L_64IS1,
/* unused encoding 0x9F b10011111 */
/* Q packets */
ETM4_PKT_I_Q = 0xA0,
/* unused encodings 0xB0-0xBF b1011xxxx */
/* Atom packets */
ETM4_PKT_I_ATOM_F6 = 0xC0,
ETM4_PKT_I_ATOM_F5 = 0xD5,
ETM4_PKT_I_ATOM_F2 = 0xD8,
ETM4_PKT_I_ATOM_F4 = 0xDC,
ETM4_PKT_I_ATOM_F1 = 0xF6,
ETM4_PKT_I_ATOM_F3 = 0xF8,
// extension packets - follow 0x00 header
ETM4_PKT_I_ASYNC = 0x100,
ETM4_PKT_I_DISCARD = 0x103,
ETM4_PKT_I_OVERFLOW = 0x105,
} ocsd_etmv4_i_pkt_type;
typedef union _etmv4_trace_info_t {
uint32_t val;
struct {
uint32_t cc_enabled:1;
uint32_t cond_enabled:3;
uint32_t p0_load:1;
uint32_t p0_store:1;
} bits;
} etmv4_trace_info_t;
typedef struct _etmv4_context_t {
struct {
uint32_t EL:2;
uint32_t SF:1;
uint32_t NS:1;
uint32_t updated:1;
uint32_t updated_c:1;
uint32_t updated_v:1;
};
uint32_t ctxtID;
uint32_t VMID;
} etmv4_context_t;
typedef struct _etmv4_addr_val_t {
ocsd_vaddr_t val;
uint8_t isa;
} etmv4_addr_val_t;
typedef struct _ocsd_etmv4_i_pkt
{
ocsd_etmv4_i_pkt_type type;
//** intra-packet data - valid across packets.
ocsd_pkt_vaddr v_addr;
uint8_t v_addr_ISA;
etmv4_context_t context;
struct {
uint64_t timestamp;
uint8_t bits_changed;
} ts;
uint32_t cc_threshold;
// single packet data - only valid for specific packet types on packet instance.
ocsd_pkt_atom atom;
uint32_t cycle_count;
uint32_t curr_spec_depth;
uint32_t p0_key;
uint32_t commit_elements; //<! commit elements indicated by this packet - valid dependent on the packet type.
uint32_t cancel_elements; //<! cancel elements indicated by this packet - valid dependent on the packet type.
etmv4_trace_info_t trace_info;
struct {
uint32_t exceptionType:10;
uint32_t addr_interp:2;
uint32_t m_fault_pending:1;
uint32_t m_type:1;
} exception_info;
uint8_t addr_exact_match_idx;
uint8_t dsm_val;
uint8_t event_val;
struct {
uint32_t cond_c_key;
uint8_t num_c_elem;
struct {
uint32_t cond_key_set:1;
uint32_t f3_final_elem:1;
uint32_t f2_cond_incr:1;
};
} cond_instr;
struct {
uint32_t cond_r_key_0;
uint32_t cond_r_key_1;
struct {
uint32_t res_0:4;
uint32_t res_1:4;
uint32_t ci_0:1;
uint32_t ci_1:1;
uint32_t key_res_0_set:1;
uint32_t key_res_1_set:1;
uint32_t f2_key_incr:2;
uint32_t f2f4_token:2;
uint32_t f3_tokens:12;
};
} cond_result;
struct {
uint32_t q_count;
struct {
uint32_t addr_present:1;
uint32_t addr_match:1;
uint32_t count_present:1;
uint32_t q_type:4;
};
} Q_pkt;
union {
uint32_t val;
struct {
uint32_t context_valid:1;
uint32_t ts_valid:1;
uint32_t spec_depth_valid:1;
uint32_t p0_key_valid:1;
uint32_t cond_c_key_valid:1;
uint32_t cond_r_key_valid:1;
uint32_t trace_info_valid:1;
uint32_t cc_thresh_valid:1;
uint32_t cc_valid:1;
uint32_t commit_elem_valid:1;
} bits;
} pkt_valid;
// original header type when packet type changed to error on decode error.
ocsd_etmv4_i_pkt_type err_type;
uint8_t err_hdr_val;
} ocsd_etmv4_i_pkt;
// D stream packets
typedef enum _ocsd_etmv4_d_pkt_type
{
// markers for unknown/bad packets
ETM4_PKT_D_NOTSYNC = 0x200,
ETM4_PKT_D_BAD_SEQUENCE,
ETM4_PKT_D_BAD_TRACEMODE,
ETM4_PKT_D_RESERVED,
ETM4_PKT_D_INCOMPLETE_EOT,
ETM4_PKT_D_NO_HEADER,
ETM4_PKT_D_NO_ERR_TYPE,
// data sync markers
ETM4_PKT_DNUM_DS_MKR = 0x111, // ext packet, b0001xxx1
// extension header
ETM4_PKT_D_EXTENSION = 0x00,
ETM4_PKT_DUNNUM_DS_MKR = 0x01,
// event trace
ETM4_PKT_DEVENT = 0x04,
// timestamp
ETM4_PKT_DTIMESTAMP = 0x02,
// P1 Data address
ETM4_PKT_DADDR_P1_F1 = 0x70,
ETM4_PKT_DADDR_P1_F2 = 0x80,
ETM4_PKT_DADDR_P1_F3 = 0x14,
ETM4_PKT_DADDR_P1_F4 = 0x60,
ETM4_PKT_DADDR_P1_F5 = 0xF8,
ETM4_PKT_DADDR_P1_F6 = 0xF6,
ETM4_PKT_DADDR_P1_F7 = 0xF5,
// P2 Data value
ETM4_PKT_DVAL_P2_F1 = 0x20,
ETM4_PKT_DVAL_P2_F2 = 0x30,
ETM4_PKT_DVAL_P2_F3 = 0x40,
ETM4_PKT_DVAL_P2_F4 = 0x10,
ETM4_PKT_DVAL_P2_F5 = 0x18,
ETM4_PKT_DVAL_P2_F6 = 0x38,
// suppression
ETM4_PKT_DSUPPRESSION = 0x03,
// synchronisation- extension packets - follow 0x00 header
ETM4_PKT_DTRACE_INFO = 0x101,
// extension packets - follow 0x00 header
ETM4_PKT_D_ASYNC = 0x100,
ETM4_PKT_D_DISCARD = 0x103,
ETM4_PKT_D_OVERFLOW = 0x105
} ocsd_etmv4_d_pkt_type;
typedef struct _ocsd_etmv4_d_pkt
{
ocsd_etmv4_d_pkt_type type;
ocsd_pkt_vaddr d_addr;
uint64_t pkt_val;
ocsd_etmv4_d_pkt_type err_type;
} ocsd_etmv4_d_pkt;
typedef struct _ocsd_etmv4_cfg
{
uint32_t reg_idr0;
uint32_t reg_idr1;
uint32_t reg_idr2;
uint32_t reg_idr8;
uint32_t reg_idr9;
uint32_t reg_idr10;
uint32_t reg_idr11;
uint32_t reg_idr12;
uint32_t reg_idr13;
uint32_t reg_configr;
uint32_t reg_traceidr;
ocsd_arch_version_t arch_ver;
ocsd_core_profile_t core_prof;
} ocsd_etmv4_cfg;
#endif // ARM_TRC_PKT_TYPES_ETMV4_H_INCLUDED
/* End of File trc_pkt_types_etmv4.h */
ETM4_PKT_D_RESERVED
packet type reserved.
Definition: trc_pkt_types_etmv4.h:289
ETM4_PKT_I_ADDR_CTXT_L_64IS1
Definition: trc_pkt_types_etmv4.h:116
_etmv4_context_t::NS
uint32_t NS
none secure
Definition: trc_pkt_types_etmv4.h:165
ETM4_PKT_DADDR_P1_F7
b11110101
Definition: trc_pkt_types_etmv4.h:311
_etmv4_trace_info_t::cc_enabled
uint32_t cc_enabled
1 if cycle count enabled
Definition: trc_pkt_types_etmv4.h:154
ETM4_PKT_I_TIMESTAMP
Definition: trc_pkt_types_etmv4.h:68
_ocsd_etmv4_i_pkt::cond_r_key_1
uint32_t cond_r_key_1
Definition: trc_pkt_types_etmv4.h:234
ETM4_PKT_DADDR_P1_F6
b1111011x
Definition: trc_pkt_types_etmv4.h:310
_ocsd_etmv4_i_pkt::exception_info
struct _ocsd_etmv4_i_pkt::@13 exception_info
_ocsd_etmv4_i_pkt::num_c_elem
uint8_t num_c_elem
Definition: trc_pkt_types_etmv4.h:224
ETM4_PKT_I_INCOMPLETE_EOT
Definition: trc_pkt_types_etmv4.h:52
_ocsd_etmv4_cfg
Definition: trc_pkt_types_etmv4.h:344
ETM4_PKT_I_ATOM_F4
Definition: trc_pkt_types_etmv4.h:140
ETM4_PKT_I_ATOM_F3
Definition: trc_pkt_types_etmv4.h:142
ETM4_PKT_I_CANCEL_F3
Definition: trc_pkt_types_etmv4.h:91
ETM4_PKT_D_BAD_SEQUENCE
invalid sequence for packet type
Definition: trc_pkt_types_etmv4.h:287
_ocsd_etmv4_i_pkt::timestamp
uint64_t timestamp
current timestamp value
Definition: trc_pkt_types_etmv4.h:192
_ocsd_etmv4_i_pkt::val
uint32_t val
Definition: trc_pkt_types_etmv4.h:260
_etmv4_trace_info_t::bits
struct _etmv4_trace_info_t::@9 bits
bitfields for trace info value.
_ocsd_etmv4_i_pkt::cancel_elements
uint32_t cancel_elements
Definition: trc_pkt_types_etmv4.h:206
ETM4_PKT_I_EVENT
Definition: trc_pkt_types_etmv4.h:108
ETM4_PKT_DVAL_P2_F3
b010xxxxx
Definition: trc_pkt_types_etmv4.h:315
ETM4_PKT_D_ASYNC
b00000000
Definition: trc_pkt_types_etmv4.h:325
ETM4_PKT_I_ADDR_S_IS0
Definition: trc_pkt_types_etmv4.h:121
_ocsd_etmv4_i_pkt::v_addr
ocsd_pkt_vaddr v_addr
most recently broadcast address packet
Definition: trc_pkt_types_etmv4.h:186
ETM4_PKT_DADDR_P1_F4
b0110xxxx
Definition: trc_pkt_types_etmv4.h:308
_etmv4_context_t::updated
uint32_t updated
updated this context packet (otherwise same as last time)
Definition: trc_pkt_types_etmv4.h:166
ETM4_PKT_I_TRACE_ON
Definition: trc_pkt_types_etmv4.h:69
_etmv4_trace_info_t
Definition: trc_pkt_types_etmv4.h:151
_etmv4_context_t::SF
uint32_t SF
sixty four bit
Definition: trc_pkt_types_etmv4.h:164
_ocsd_etmv4_i_pkt::Q_pkt
struct _ocsd_etmv4_i_pkt::@16 Q_pkt
ETM4_PKT_I_DISCARD
b00000011
Definition: trc_pkt_types_etmv4.h:146
_ocsd_etmv4_i_pkt::commit_elem_valid
uint32_t commit_elem_valid
Definition: trc_pkt_types_etmv4.h:271
ETM4_PKT_D_NO_ERR_TYPE
error packet has no header based type. Use with unknown/res packet types.
Definition: trc_pkt_types_etmv4.h:292
_ocsd_etmv4_i_pkt::cond_result
struct _ocsd_etmv4_i_pkt::@15 cond_result
_ocsd_etmv4_cfg::reg_idr1
uint32_t reg_idr1
Definition: trc_pkt_types_etmv4.h:347
ETM4_PKT_I_COND_FLUSH
Definition: trc_pkt_types_etmv4.h:95
_ocsd_etmv4_cfg::reg_idr9
uint32_t reg_idr9
Definition: trc_pkt_types_etmv4.h:350
ETM4_PKT_DVAL_P2_F6
b00111xxx
Definition: trc_pkt_types_etmv4.h:318
ETM4_PKT_D_OVERFLOW
b00000101
Definition: trc_pkt_types_etmv4.h:327
_ocsd_etmv4_cfg::arch_ver
ocsd_arch_version_t arch_ver
Definition: trc_pkt_types_etmv4.h:357
_etmv4_trace_info_t::p0_store
uint32_t p0_store
1 if tracing with P0 store elements (for data trace)
Definition: trc_pkt_types_etmv4.h:157
_ocsd_etmv4_i_pkt::cond_r_key_0
uint32_t cond_r_key_0
Definition: trc_pkt_types_etmv4.h:233
_ocsd_etmv4_i_pkt::q_type
uint32_t q_type
Definition: trc_pkt_types_etmv4.h:254
ETM4_PKT_I_COND_RES_F2
Definition: trc_pkt_types_etmv4.h:98
ETM4_PKT_I_ADDR_S_IS1
Definition: trc_pkt_types_etmv4.h:122
ETM4_PKT_I_UNNUM_DS_MKR
Definition: trc_pkt_types_etmv4.h:84
_ocsd_etmv4_cfg::reg_traceidr
uint32_t reg_traceidr
Definition: trc_pkt_types_etmv4.h:356
ocsd_arch_version_t
enum _ocsd_arch_version ocsd_arch_version_t
ETM4_PKT_I_ADDR_L_32IS0
Definition: trc_pkt_types_etmv4.h:124
_ocsd_etmv4_cfg::reg_idr0
uint32_t reg_idr0
Definition: trc_pkt_types_etmv4.h:346
_ocsd_etmv4_i_pkt::ci_1
uint32_t ci_1
Definition: trc_pkt_types_etmv4.h:239
ETM4_PKT_I_ATOM_F1
Definition: trc_pkt_types_etmv4.h:141
_ocsd_etmv4_i_pkt::cond_r_key_valid
uint32_t cond_r_key_valid
Definition: trc_pkt_types_etmv4.h:267
ETM4_PKT_I_COND_RES_F4
Definition: trc_pkt_types_etmv4.h:96
_etmv4_context_t::updated_v
uint32_t updated_v
updated VMID
Definition: trc_pkt_types_etmv4.h:168
ETM4_PKT_I_CANCEL_F1
Definition: trc_pkt_types_etmv4.h:88
_ocsd_etmv4_d_pkt::type
ocsd_etmv4_d_pkt_type type
Definition: trc_pkt_types_etmv4.h:334
ETM4_PKT_I_RESERVED
Definition: trc_pkt_types_etmv4.h:58
ETM4_PKT_DADDR_P1_F2
b10xxxxxx
Definition: trc_pkt_types_etmv4.h:306
_ocsd_etmv4_i_pkt::res_1
uint32_t res_1
Definition: trc_pkt_types_etmv4.h:237
ETM4_PKT_I_COND_I_F2
Definition: trc_pkt_types_etmv4.h:94
_ocsd_etmv4_i_pkt::dsm_val
uint8_t dsm_val
Data Sync Marker number, or unnumbered atom count - packet type determines.
Definition: trc_pkt_types_etmv4.h:219
_ocsd_etmv4_i_pkt::type
ocsd_etmv4_i_pkt_type type
Definition: trc_pkt_types_etmv4.h:182
_ocsd_etmv4_i_pkt::ts
struct _ocsd_etmv4_i_pkt::@12 ts
ETM4_PKT_I_EXCEPT
Definition: trc_pkt_types_etmv4.h:72
ETM4_PKT_DSUPPRESSION
b00000011
Definition: trc_pkt_types_etmv4.h:320
_ocsd_etmv4_i_pkt::f2_key_incr
uint32_t f2_key_incr
Definition: trc_pkt_types_etmv4.h:242
_ocsd_etmv4_i_pkt::f2_cond_incr
uint32_t f2_cond_incr
Definition: trc_pkt_types_etmv4.h:228
_ocsd_etmv4_i_pkt::context_valid
uint32_t context_valid
Definition: trc_pkt_types_etmv4.h:262
_ocsd_etmv4_i_pkt::addr_exact_match_idx
uint8_t addr_exact_match_idx
address match index in this packet.
Definition: trc_pkt_types_etmv4.h:218
_ocsd_etmv4_i_pkt::m_type
uint32_t m_type
1 if M class exception.
Definition: trc_pkt_types_etmv4.h:214
ETM4_PKT_DTIMESTAMP
b00000010
Definition: trc_pkt_types_etmv4.h:303
_etmv4_trace_info_t::cond_enabled
uint32_t cond_enabled
conditional trace enabeld type
Definition: trc_pkt_types_etmv4.h:155
_ocsd_etmv4_cfg::reg_configr
uint32_t reg_configr
Definition: trc_pkt_types_etmv4.h:355
_etmv4_addr_val_t::val
ocsd_vaddr_t val
Address value.
Definition: trc_pkt_types_etmv4.h:176
_ocsd_etmv4_d_pkt::d_addr
ocsd_pkt_vaddr d_addr
Definition: trc_pkt_types_etmv4.h:336
_ocsd_etmv4_i_pkt::spec_depth_valid
uint32_t spec_depth_valid
Definition: trc_pkt_types_etmv4.h:264
ocsd_etmv4_cfg
struct _ocsd_etmv4_cfg ocsd_etmv4_cfg
_ocsd_etmv4_i_pkt::m_fault_pending
uint32_t m_fault_pending
M class fault pending.
Definition: trc_pkt_types_etmv4.h:213
_ocsd_etmv4_i_pkt::exceptionType
uint32_t exceptionType
exception number
Definition: trc_pkt_types_etmv4.h:211
ETM4_PKT_DEVENT
b00000100
Definition: trc_pkt_types_etmv4.h:301
ETM4_PKT_DVAL_P2_F2
b00110xxx
Definition: trc_pkt_types_etmv4.h:314
_etmv4_context_t::ctxtID
uint32_t ctxtID
Current ctxtID.
Definition: trc_pkt_types_etmv4.h:170
_etmv4_context_t::updated_c
uint32_t updated_c
updated CtxtID
Definition: trc_pkt_types_etmv4.h:167
_etmv4_addr_val_t
Definition: trc_pkt_types_etmv4.h:175
_ocsd_etmv4_i_pkt::cc_thresh_valid
uint32_t cc_thresh_valid
Definition: trc_pkt_types_etmv4.h:269
ETM4_PKT_DTRACE_INFO
b00000001
Definition: trc_pkt_types_etmv4.h:322
ETM4_PKT_I_ADDR_L_64IS1
Definition: trc_pkt_types_etmv4.h:128
ETM4_PKT_DVAL_P2_F1
b0010xxxx
Definition: trc_pkt_types_etmv4.h:313
_ocsd_etmv4_i_pkt::p0_key_valid
uint32_t p0_key_valid
Definition: trc_pkt_types_etmv4.h:265
ETM4_PKT_D_NO_HEADER
waiting for a header byte
Definition: trc_pkt_types_etmv4.h:291
_ocsd_etmv4_i_pkt::cond_c_key_valid
uint32_t cond_c_key_valid
Definition: trc_pkt_types_etmv4.h:266
_etmv4_context_t::VMID
uint32_t VMID
current VMID
Definition: trc_pkt_types_etmv4.h:171
_ocsd_etmv4_i_pkt::count_present
uint32_t count_present
Definition: trc_pkt_types_etmv4.h:253
ocsd_vaddr_t
uint64_t ocsd_vaddr_t
Definition: ocsd_if_types.h:308
ocsd_etmv4_i_pkt
struct _ocsd_etmv4_i_pkt ocsd_etmv4_i_pkt
ETM4_PKT_I_ADDR_CTXT_L_32IS1
Definition: trc_pkt_types_etmv4.h:113
etmv4_trace_info_t
union _etmv4_trace_info_t etmv4_trace_info_t
_ocsd_etmv4_i_pkt::err_type
ocsd_etmv4_i_pkt_type err_type
Definition: trc_pkt_types_etmv4.h:276
ETM4_PKT_I_ADDR_L_32IS1
Definition: trc_pkt_types_etmv4.h:125
_ocsd_etmv4_i_pkt::f3_final_elem
uint32_t f3_final_elem
Definition: trc_pkt_types_etmv4.h:227
_etmv4_addr_val_t::isa
uint8_t isa
instruction set.
Definition: trc_pkt_types_etmv4.h:177
_ocsd_etmv4_cfg::reg_idr12
uint32_t reg_idr12
Definition: trc_pkt_types_etmv4.h:353
ETM4_PKT_I_EXCEPT_RTN
Definition: trc_pkt_types_etmv4.h:73
_ocsd_etmv4_i_pkt::cycle_count
uint32_t cycle_count
cycle count
Definition: trc_pkt_types_etmv4.h:200
ETM4_PKT_DVAL_P2_F5
b00011xxx
Definition: trc_pkt_types_etmv4.h:317
ETM4_PKT_I_ADDR_CTXT_L_64IS0
Definition: trc_pkt_types_etmv4.h:115
_etmv4_context_t::EL
uint32_t EL
exception level.
Definition: trc_pkt_types_etmv4.h:163
_etmv4_trace_info_t::p0_load
uint32_t p0_load
1 if tracing with P0 load elements (for data trace)
Definition: trc_pkt_types_etmv4.h:156
etmv4_addr_val_t
struct _etmv4_addr_val_t etmv4_addr_val_t
ETM4_PKT_D_NOTSYNC
no sync found yet
Definition: trc_pkt_types_etmv4.h:286
ETM4_PKT_I_CCNT_F1
Definition: trc_pkt_types_etmv4.h:79
_ocsd_etmv4_i_pkt::ci_0
uint32_t ci_0
Definition: trc_pkt_types_etmv4.h:238
_ocsd_etmv4_i_pkt::q_count
uint32_t q_count
Definition: trc_pkt_types_etmv4.h:249
ETM4_PKT_D_EXTENSION
b00000000
Definition: trc_pkt_types_etmv4.h:297
ETM4_PKT_D_BAD_TRACEMODE
invalid packet type for this trace mode.
Definition: trc_pkt_types_etmv4.h:288
_ocsd_etmv4_i_pkt::atom
ocsd_pkt_atom atom
atom elements - number of atoms indicates validity of packet
Definition: trc_pkt_types_etmv4.h:199
_ocsd_etmv4_i_pkt::cc_valid
uint32_t cc_valid
Definition: trc_pkt_types_etmv4.h:270
_ocsd_etmv4_d_pkt_type
_ocsd_etmv4_d_pkt_type
Definition: trc_pkt_types_etmv4.h:283
ocsd_etmv4_i_pkt_type
enum _ocsd_etmv4_i_pkt_type ocsd_etmv4_i_pkt_type
ETM4_PKT_I_TRACE_INFO
Definition: trc_pkt_types_etmv4.h:66
_ocsd_etmv4_i_pkt::key_res_1_set
uint32_t key_res_1_set
Definition: trc_pkt_types_etmv4.h:241
_ocsd_etmv4_i_pkt
Definition: trc_pkt_types_etmv4.h:180
ETM4_PKT_I_NO_ERR_TYPE
Definition: trc_pkt_types_etmv4.h:53
_ocsd_pkt_vaddr
Definition: trc_pkt_types.h:58
_ocsd_etmv4_i_pkt::cond_c_key
uint32_t cond_c_key
Definition: trc_pkt_types_etmv4.h:223
_ocsd_etmv4_i_pkt::commit_elements
uint32_t commit_elements
Definition: trc_pkt_types_etmv4.h:205
_ocsd_etmv4_d_pkt::err_type
ocsd_etmv4_d_pkt_type err_type
Definition: trc_pkt_types_etmv4.h:340
ETM4_PKT_I_CTXT
Definition: trc_pkt_types_etmv4.h:111
ETM4_PKT_DADDR_P1_F3
b000101xx
Definition: trc_pkt_types_etmv4.h:307
ETM4_PKT_I_ATOM_F5
Definition: trc_pkt_types_etmv4.h:138
ETM4_PKT_I_COMMIT
Definition: trc_pkt_types_etmv4.h:87
ETM4_PKT_I_COND_I_F3
Definition: trc_pkt_types_etmv4.h:104
ETM4_PKT_D_DISCARD
b00000011
Definition: trc_pkt_types_etmv4.h:326
ETM4_PKT_I_ATOM_F6
Definition: trc_pkt_types_etmv4.h:137
ETM4_PKT_I_EXTENSION
Definition: trc_pkt_types_etmv4.h:63
etmv4_context_t
struct _etmv4_context_t etmv4_context_t
ETM4_PKT_I_Q
Definition: trc_pkt_types_etmv4.h:132
ETM4_PKT_I_ASYNC
b00000000
Definition: trc_pkt_types_etmv4.h:145
_ocsd_etmv4_i_pkt::addr_match
uint32_t addr_match
Definition: trc_pkt_types_etmv4.h:252
_etmv4_trace_info_t::val
uint32_t val
trace info full value.
Definition: trc_pkt_types_etmv4.h:152
ETM4_PKT_I_OVERFLOW
b00000101
Definition: trc_pkt_types_etmv4.h:147
_ocsd_etmv4_i_pkt::addr_present
uint32_t addr_present
Definition: trc_pkt_types_etmv4.h:251
ETM4_PKT_I_NOTSYNC
Definition: trc_pkt_types_etmv4.h:51
_ocsd_etmv4_i_pkt::f3_tokens
uint32_t f3_tokens
Definition: trc_pkt_types_etmv4.h:244
ETM4_PKT_I_CCNT_F3
Definition: trc_pkt_types_etmv4.h:80
_ocsd_etmv4_cfg::reg_idr13
uint32_t reg_idr13
Definition: trc_pkt_types_etmv4.h:354
ETM4_PKT_DVAL_P2_F4
b000100xx
Definition: trc_pkt_types_etmv4.h:316
_ocsd_etmv4_i_pkt::ts_valid
uint32_t ts_valid
Definition: trc_pkt_types_etmv4.h:263
ETM4_PKT_I_FUNC_RET
Definition: trc_pkt_types_etmv4.h:70
ETM4_PKT_I_ADDR_MATCH
Definition: trc_pkt_types_etmv4.h:119
ETM4_PKT_I_ADDR_L_64IS0
Definition: trc_pkt_types_etmv4.h:127
trc_pkt_types.h
OpenCSD: Common "C" types for trace packets.
_ocsd_etmv4_cfg::reg_idr8
uint32_t reg_idr8
Definition: trc_pkt_types_etmv4.h:349
_ocsd_etmv4_i_pkt::err_hdr_val
uint8_t err_hdr_val
Definition: trc_pkt_types_etmv4.h:277
_ocsd_etmv4_i_pkt::pkt_valid
union _ocsd_etmv4_i_pkt::@17 pkt_valid
valid bits for packet elements (addresses have their own valid bits).
ETM4_PKT_I_BAD_SEQUENCE
Definition: trc_pkt_types_etmv4.h:56
ETM4_PKT_DUNNUM_DS_MKR
b00000001
Definition: trc_pkt_types_etmv4.h:299
_ocsd_etmv4_i_pkt::cond_key_set
uint32_t cond_key_set
Definition: trc_pkt_types_etmv4.h:226
_ocsd_pkt_atom
Definition: trc_pkt_types.h:84
_ocsd_etmv4_i_pkt::res_0
uint32_t res_0
Definition: trc_pkt_types_etmv4.h:236
ETM4_PKT_I_ATOM_F2
Definition: trc_pkt_types_etmv4.h:139
_ocsd_etmv4_i_pkt::context
etmv4_context_t context
current context for PE
Definition: trc_pkt_types_etmv4.h:189
_etmv4_context_t
Definition: trc_pkt_types_etmv4.h:161
ETM4_PKT_I_COND_RES_F1
Definition: trc_pkt_types_etmv4.h:102
_ocsd_etmv4_cfg::reg_idr11
uint32_t reg_idr11
Definition: trc_pkt_types_etmv4.h:352
ETM4_PKT_DADDR_P1_F5
b11111xxx
Definition: trc_pkt_types_etmv4.h:309
ETM4_PKT_D_INCOMPLETE_EOT
flushing incomplete packet at end of trace.
Definition: trc_pkt_types_etmv4.h:290
_ocsd_etmv4_cfg::reg_idr10
uint32_t reg_idr10
Definition: trc_pkt_types_etmv4.h:351
ETM4_PKT_I_NUM_DS_MKR
Definition: trc_pkt_types_etmv4.h:83
ETM4_PKT_I_CCNT_F2
Definition: trc_pkt_types_etmv4.h:78
_ocsd_etmv4_i_pkt::event_val
uint8_t event_val
Event value on event packet.
Definition: trc_pkt_types_etmv4.h:220
_ocsd_etmv4_i_pkt::curr_spec_depth
uint32_t curr_spec_depth
current speculation depth
Definition: trc_pkt_types_etmv4.h:202
ETM4_PKT_I_COND_RES_F3
Definition: trc_pkt_types_etmv4.h:100
_ocsd_etmv4_i_pkt::p0_key
uint32_t p0_key
current P0 key value for data packet synchronisation
Definition: trc_pkt_types_etmv4.h:203
ETM4_PKT_I_ADDR_CTXT_L_32IS0
Definition: trc_pkt_types_etmv4.h:112
ETM4_PKT_I_BAD_TRACEMODE
Definition: trc_pkt_types_etmv4.h:57
ETM4_PKT_DADDR_P1_F1
b0111xxxx
Definition: trc_pkt_types_etmv4.h:305
ETM4_PKT_I_RESERVED_CFG
Definition: trc_pkt_types_etmv4.h:59
ETM4_PKT_DNUM_DS_MKR
Definition: trc_pkt_types_etmv4.h:295
_ocsd_etmv4_i_pkt::key_res_0_set
uint32_t key_res_0_set
Definition: trc_pkt_types_etmv4.h:240
_ocsd_etmv4_i_pkt::bits_changed
uint8_t bits_changed
bits updated in this timestamp packet.
Definition: trc_pkt_types_etmv4.h:193
_ocsd_etmv4_cfg::reg_idr2
uint32_t reg_idr2
Definition: trc_pkt_types_etmv4.h:348
_ocsd_etmv4_d_pkt::pkt_val
uint64_t pkt_val
Definition: trc_pkt_types_etmv4.h:338
_ocsd_etmv4_i_pkt::cond_instr
struct _ocsd_etmv4_i_pkt::@14 cond_instr
_ocsd_etmv4_i_pkt::cc_threshold
uint32_t cc_threshold
cycle count threshold - from trace info.
Definition: trc_pkt_types_etmv4.h:196
_ocsd_etmv4_cfg::core_prof
ocsd_core_profile_t core_prof
Definition: trc_pkt_types_etmv4.h:358
_ocsd_etmv4_i_pkt::bits
struct _ocsd_etmv4_i_pkt::@17::@24 bits
ETM4_PKT_I_MISPREDICT
Definition: trc_pkt_types_etmv4.h:89
_ocsd_etmv4_i_pkt_type
_ocsd_etmv4_i_pkt_type
Definition: trc_pkt_types_etmv4.h:48
ETM4_PKT_I_COND_I_F1
Definition: trc_pkt_types_etmv4.h:103
_ocsd_etmv4_d_pkt
Definition: trc_pkt_types_etmv4.h:332
_ocsd_etmv4_i_pkt::v_addr_ISA
uint8_t v_addr_ISA
ISA for the address packet. (0 = IS0 / 1 = IS1)
Definition: trc_pkt_types_etmv4.h:187
ocsd_core_profile_t
enum _ocsd_core_profile ocsd_core_profile_t
_ocsd_etmv4_i_pkt::trace_info
etmv4_trace_info_t trace_info
trace info structure - programmed configuration of trace capture.
Definition: trc_pkt_types_etmv4.h:208
_ocsd_etmv4_i_pkt::addr_interp
uint32_t addr_interp
address value interpretation
Definition: trc_pkt_types_etmv4.h:212
ETM4_PKT_I_IGNORE
Definition: trc_pkt_types_etmv4.h:107
_ocsd_etmv4_i_pkt::trace_info_valid
uint32_t trace_info_valid
Definition: trc_pkt_types_etmv4.h:268
_ocsd_etmv4_i_pkt::f2f4_token
uint32_t f2f4_token
Definition: trc_pkt_types_etmv4.h:243
ocsd_etmv4_d_pkt_type
enum _ocsd_etmv4_d_pkt_type ocsd_etmv4_d_pkt_type
ETM4_PKT_I_CANCEL_F2
Definition: trc_pkt_types_etmv4.h:90
ocsd_etmv4_d_pkt
struct _ocsd_etmv4_d_pkt ocsd_etmv4_d_pkt