OpenCSD - CoreSight Trace Decode Library  1.3.3
trc_gen_elem_types.h
Go to the documentation of this file.
1 
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_GEN_ELEM_TYPES_H_INCLUDED
36 #define ARM_TRC_GEN_ELEM_TYPES_H_INCLUDED
37 
44 #include "opencsd/ocsd_if_types.h"
45 
47 typedef enum _ocsd_gen_trc_elem_t
48 {
68 
69 
70 typedef enum _trace_on_reason_t {
75 
76 typedef struct _trace_event_t {
77  uint16_t ev_type;
78  uint16_t ev_number;
80 
81 typedef enum _unsync_info_t {
90 
91 typedef enum _trace_sync_marker_t {
94 
95 typedef struct _trace_marker_payload_t {
97  uint32_t value;
99 
100 typedef enum _memtrans_t {
106 
107 typedef struct _ocsd_generic_trace_elem {
113  uint64_t timestamp;
114  uint32_t cycle_count;
119  union {
120  struct {
121  uint32_t last_instr_exec:1;
122  uint32_t last_instr_sz:3;
123  uint32_t has_cc:1;
124  uint32_t cpu_freq_change:1;
125  uint32_t excep_ret_addr:1;
126  uint32_t excep_data_marker:1;
127  uint32_t extended_data:1;
128  uint32_t has_ts:1;
129  uint32_t last_instr_cond:1;
131  };
132  uint32_t flag_bits;
133  };
134 
136  union {
137  uint32_t exception_number;
141  uint32_t num_instr_range;
145  };
146 
147  const void *ptr_extended_data;
150 
151 
152 typedef enum _event_t {
157 
158 
160 #endif // ARM_TRC_GEN_ELEM_TYPES_H_INCLUDED
161 
162 /* End of File opencsd/trc_gen_elem_types.h */
enum _trace_on_reason_t trace_on_reason_t
_trace_sync_marker_t
enum _unsync_info_t unsync_info_t
_unsync_info_t
enum _event_t event_t
struct _ocsd_generic_trace_elem ocsd_generic_trace_elem
enum _memtrans_t trace_memtrans_t
struct _trace_event_t trace_event_t
enum _ocsd_gen_trc_elem_t ocsd_gen_trc_elem_t
_trace_on_reason_t
struct _trace_marker_payload_t trace_marker_payload_t
enum _trace_sync_marker_t trace_sync_marker_t
_ocsd_gen_trc_elem_t
@ OCSD_MEM_TRANS_FAIL
@ OCSD_MEM_TRANS_TRACE_INIT
@ OCSD_MEM_TRANS_COMMIT
@ OCSD_MEM_TRANS_START
@ ELEM_MARKER_TS
@ UNSYNC_DISCARD
@ UNSYNC_OVERFLOW
@ UNSYNC_UNKNOWN
@ UNSYNC_INIT_DECODER
@ UNSYNC_RESET_DECODER
@ UNSYNC_BAD_PACKET
@ UNSYNC_EOT
@ EVENT_NUMBERED
@ EVENT_UNKNOWN
@ EVENT_TRIGGER
@ TRACE_ON_OVERFLOW
@ TRACE_ON_EX_DEBUG
@ TRACE_ON_NORMAL
@ OCSD_GEN_TRC_ELEM_MEMTRANS
@ OCSD_GEN_TRC_ELEM_CUSTOM
@ OCSD_GEN_TRC_ELEM_ADDR_NACC
@ OCSD_GEN_TRC_ELEM_EVENT
@ OCSD_GEN_TRC_ELEM_UNKNOWN
@ OCSD_GEN_TRC_ELEM_CYCLE_COUNT
@ OCSD_GEN_TRC_ELEM_SYNC_MARKER
@ OCSD_GEN_TRC_ELEM_TIMESTAMP
@ OCSD_GEN_TRC_ELEM_INSTR_RANGE
@ OCSD_GEN_TRC_ELEM_EO_TRACE
@ OCSD_GEN_TRC_ELEM_EXCEPTION_RET
@ OCSD_GEN_TRC_ELEM_ADDR_UNKNOWN
@ OCSD_GEN_TRC_ELEM_EXCEPTION
@ OCSD_GEN_TRC_ELEM_SWTRACE
@ OCSD_GEN_TRC_ELEM_PE_CONTEXT
@ OCSD_GEN_TRC_ELEM_NO_SYNC
@ OCSD_GEN_TRC_ELEM_I_RANGE_NOPATH
@ OCSD_GEN_TRC_ELEM_TRACE_ON
enum _ocsd_instr_subtype ocsd_instr_subtype
enum _ocsd_instr_type ocsd_instr_type
enum _ocsd_isa ocsd_isa
uint64_t ocsd_vaddr_t
OpenCSD : Standard Types used in the library interfaces.
trace_marker_payload_t sync_marker
ocsd_instr_subtype last_i_subtype
trace_on_reason_t trace_on_reason
ocsd_gen_trc_elem_t elem_type
trace_sync_marker_t type