OpenCSD - CoreSight Trace Decode Library  1.1.1
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;
118  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 {
156 } 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_sync_marker_t trace_sync_marker_t
trace_marker_payload_t sync_marker
uint64_t ocsd_vaddr_t
enum _unsync_info_t unsync_info_t
_trace_on_reason_t
enum _ocsd_instr_type ocsd_instr_type
ocsd_instr_subtype last_i_subtype
struct _trace_marker_payload_t trace_marker_payload_t
enum _memtrans_t trace_memtrans_t
_trace_sync_marker_t
trace_sync_marker_t type
enum _event_t event_t
enum _ocsd_gen_trc_elem_t ocsd_gen_trc_elem_t
enum _ocsd_isa ocsd_isa
_ocsd_gen_trc_elem_t
_unsync_info_t
struct _ocsd_generic_trace_elem ocsd_generic_trace_elem
OpenCSD : Standard Types used in the library interfaces.
ocsd_gen_trc_elem_t elem_type
struct _trace_event_t trace_event_t
enum _ocsd_instr_subtype ocsd_instr_subtype
trace_on_reason_t trace_on_reason
enum _trace_on_reason_t trace_on_reason_t