OpenCSD - CoreSight Trace Decode Library 1.1.1
Loading...
Searching...
No Matches
trc_pkt_types_etmv3.h
Go to the documentation of this file.
1/*
2 * \file trc_pkt_types_etmv3.h
3 * \brief OpenCSD :
4 *
5 * \copyright Copyright (c) 2015, ARM Limited. All Rights Reserved.
6 */
7
8/*
9 * Redistribution and use in source and binary forms, with or without modification,
10 * are permitted provided that the following conditions are met:
11 *
12 * 1. Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 *
15 * 2. Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 *
19 * 3. Neither the name of the copyright holder nor the names of its contributors
20 * may be used to endorse or promote products derived from this software without
21 * specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#ifndef ARM_TRC_ETM3_PKT_TYPES_ETMV3_H_INCLUDED
36#define ARM_TRC_ETM3_PKT_TYPES_ETMV3_H_INCLUDED
37
39
47{
48
49// markers for unknown packets
53
54// markers for valid packets
74
75// internal processing types
77
78// packet errors
82
84
85typedef struct _ocsd_etmv3_excep {
87 uint16_t number;
88 struct {
89 uint32_t present:1;
90 uint32_t cancel:1;
91 uint32_t cm_type:1;
92 uint32_t cm_resume:4;
93 uint32_t cm_irq_n:9;
96
97typedef struct _etmv3_context_t {
98 struct {
99 uint32_t curr_alt_isa:1;
100 uint32_t curr_NS:1;
101 uint32_t curr_Hyp:1;
102 uint32_t updated:1;
103 uint32_t updated_c:1;
104 uint32_t updated_v:1;
105 };
106 uint32_t ctxtID;
107 uint8_t VMID;
109
110
111typedef struct _etmv3_data_t {
112
113 uint32_t value;
116 struct {
117 uint32_t ooo_tag:2;
118 uint32_t be:1;
119 uint32_t update_be:1;
120 uint32_t update_addr:1;
121 uint32_t update_dval:1;
122 };
124
125typedef struct _etmv3_isync_t {
127 struct {
128 uint32_t has_cycle_count:1;
129 uint32_t has_LSipAddress:1;
130 uint32_t no_address:1;
131 };
133
134typedef struct _ocsd_etmv3_pkt
135{
145
147
149 uint8_t p_hdr_fmt;
150 uint32_t cycle_count;
152 uint64_t timestamp;
160
161typedef struct _ocsd_etmv3_cfg
162{
163 uint32_t reg_idr;
164 uint32_t reg_ctrl;
165 uint32_t reg_ccer;
166 uint32_t reg_trc_id;
170
171
172#define DATA_ADDR_EXPECTED_FLAG 0x20
176#endif // ARM_TRC_ETM3_PKT_TYPES_ETMV3_H_INCLUDED
177
178/* End of File trc_pkt_types_etmv3.h */
enum _ocsd_core_profile ocsd_core_profile_t
enum _ocsd_arch_version ocsd_arch_version_t
enum _ocsd_isa ocsd_isa
struct _ocsd_etmv3_pkt ocsd_etmv3_pkt
enum _ocsd_etmv3_pkt_type ocsd_etmv3_pkt_type
enum _ocsd_armv7_exception ocsd_armv7_exception
struct _etmv3_data_t etmv3_data_t
struct _etmv3_isync_t etmv3_isync_t
_ocsd_etmv3_pkt_type
struct _ocsd_etmv3_cfg ocsd_etmv3_cfg
enum _ocsd_iSync_reason ocsd_iSync_reason
struct _etmv3_context_t etmv3_context_t
struct _ocsd_etmv3_excep ocsd_etmv3_excep
@ ETM3_PKT_OOO_DATA
@ ETM3_PKT_TIMESTAMP
@ ETM3_PKT_VMID
@ ETM3_PKT_I_SYNC_CYCLE
@ ETM3_PKT_NOERROR
no error in packet - supplimentary data.
@ ETM3_PKT_RESERVED
packet type reserved.
@ ETM3_PKT_DATA_SUPPRESSED
@ ETM3_PKT_NOTSYNC
no sync found yet
@ ETM3_PKT_I_SYNC
@ ETM3_PKT_STORE_FAIL
@ ETM3_PKT_EXCEPTION_ENTRY
@ ETM3_PKT_CONTEXT_ID
@ ETM3_PKT_BRANCH_OR_BYPASS_EOT
@ ETM3_PKT_NORM_DATA
@ ETM3_PKT_IGNORE
@ ETM3_PKT_VAL_NOT_TRACED
@ ETM3_PKT_A_SYNC
@ ETM3_PKT_INCOMPLETE_EOT
flushing incomplete/empty packet at end of trace.
@ ETM3_PKT_BRANCH_ADDRESS
@ ETM3_PKT_EXCEPTION_EXIT
@ ETM3_PKT_BAD_SEQUENCE
invalid sequence for packet type
@ ETM3_PKT_CYCLE_COUNT
@ ETM3_PKT_P_HDR
@ ETM3_PKT_BAD_TRACEMODE
invalid packet type for this trace mode.
@ ETM3_PKT_OOO_ADDR_PLC
@ ETM3_PKT_TRIGGER
ocsd_pkt_vaddr addr
ocsd_iSync_reason reason
ocsd_core_profile_t core_prof
ocsd_arch_version_t arch_ver
ocsd_armv7_exception type
struct _ocsd_etmv3_excep::@1 bits
ocsd_etmv3_excep exception
ocsd_etmv3_pkt_type type
etmv3_context_t context
ocsd_etmv3_pkt_type err_type
etmv3_isync_t isync_info
OpenCSD: Common "C" types for trace packets.