OpenCSD - CoreSight Trace Decode Library  0.12.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 {
65 
66 
67 typedef enum _trace_on_reason_t {
72 
73 typedef struct _trace_event_t {
74  uint16_t ev_type;
75  uint16_t ev_number;
77 
78 typedef struct _ocsd_generic_trace_elem {
84  uint64_t timestamp;
85  uint32_t cycle_count;
89  union {
91  struct {
92  uint32_t last_instr_exec:1;
93  uint32_t last_instr_sz:3;
94  uint32_t has_cc:1;
95  uint32_t cpu_freq_change:1;
96  uint32_t excep_ret_addr:1;
97  uint32_t excep_data_marker:1;
98  uint32_t extended_data:1;
99  uint32_t has_ts:1;
100  uint32_t last_instr_cond:1;
102  };
103  uint32_t flag_bits;
104  };
105 
107  union {
108  uint32_t exception_number;
112  uint32_t num_instr_range;
113  };
114 
115  const void *ptr_extended_data;
118 
119 
120 typedef enum _event_t {
124 } event_t;
125 
126 
128 #endif // ARM_TRC_GEN_ELEM_TYPES_H_INCLUDED
129 
130 /* End of File opencsd/trc_gen_elem_types.h */
_ocsd_generic_trace_elem::last_instr_sz
uint32_t last_instr_sz
Definition: trc_gen_elem_types.h:93
_ocsd_generic_trace_elem::trace_on_reason
trace_on_reason_t trace_on_reason
Definition: trc_gen_elem_types.h:110
trace_on_reason_t
enum _trace_on_reason_t trace_on_reason_t
ocsd_instr_type
enum _ocsd_instr_type ocsd_instr_type
_ocsd_generic_trace_elem::excep_ret_addr_br_tgt
uint32_t excep_ret_addr_br_tgt
Definition: trc_gen_elem_types.h:101
ocsd_instr_subtype
enum _ocsd_instr_subtype ocsd_instr_subtype
_ocsd_generic_trace_elem::sw_trace_info
ocsd_swt_info_t sw_trace_info
Definition: trc_gen_elem_types.h:111
_ocsd_generic_trace_elem::ptr_extended_data
const void * ptr_extended_data
Definition: trc_gen_elem_types.h:115
_ocsd_generic_trace_elem::excep_data_marker
uint32_t excep_data_marker
Definition: trc_gen_elem_types.h:97
_ocsd_generic_trace_elem::flag_bits
uint32_t flag_bits
Definition: trc_gen_elem_types.h:103
OCSD_GEN_TRC_ELEM_EXCEPTION_RET
Definition: trc_gen_elem_types.h:58
EVENT_TRIGGER
Definition: trc_gen_elem_types.h:122
OCSD_GEN_TRC_ELEM_CUSTOM
Definition: trc_gen_elem_types.h:63
_event_t
_event_t
Definition: trc_gen_elem_types.h:120
OCSD_GEN_TRC_ELEM_TIMESTAMP
Definition: trc_gen_elem_types.h:59
OCSD_GEN_TRC_ELEM_NO_SYNC
Definition: trc_gen_elem_types.h:50
OCSD_GEN_TRC_ELEM_CYCLE_COUNT
Definition: trc_gen_elem_types.h:60
_trace_event_t
Definition: trc_gen_elem_types.h:73
_ocsd_generic_trace_elem::cpu_freq_change
uint32_t cpu_freq_change
Definition: trc_gen_elem_types.h:95
_ocsd_generic_trace_elem::en_addr
ocsd_vaddr_t en_addr
Definition: trc_gen_elem_types.h:82
_ocsd_generic_trace_elem::exception_number
uint32_t exception_number
Definition: trc_gen_elem_types.h:108
OCSD_GEN_TRC_ELEM_EXCEPTION
Definition: trc_gen_elem_types.h:57
TRACE_ON_OVERFLOW
Definition: trc_gen_elem_types.h:69
_trace_event_t::ev_type
uint16_t ev_type
Definition: trc_gen_elem_types.h:74
OCSD_GEN_TRC_ELEM_ADDR_NACC
Definition: trc_gen_elem_types.h:55
ocsd_if_types.h
OpenCSD : Standard Types used in the library interfaces.
_trace_on_reason_t
_trace_on_reason_t
Definition: trc_gen_elem_types.h:67
_ocsd_generic_trace_elem::st_addr
ocsd_vaddr_t st_addr
Definition: trc_gen_elem_types.h:81
_ocsd_generic_trace_elem
Definition: trc_gen_elem_types.h:78
OCSD_GEN_TRC_ELEM_PE_CONTEXT
Definition: trc_gen_elem_types.h:53
_ocsd_generic_trace_elem::num_instr_range
uint32_t num_instr_range
Definition: trc_gen_elem_types.h:112
_ocsd_generic_trace_elem::excep_ret_addr
uint32_t excep_ret_addr
Definition: trc_gen_elem_types.h:96
ocsd_vaddr_t
uint64_t ocsd_vaddr_t
Definition: ocsd_if_types.h:308
_ocsd_generic_trace_elem::last_i_subtype
ocsd_instr_subtype last_i_subtype
Definition: trc_gen_elem_types.h:87
OCSD_GEN_TRC_ELEM_EO_TRACE
Definition: trc_gen_elem_types.h:52
_ocsd_swt_info
Definition: ocsd_if_types.h:598
event_t
enum _event_t event_t
_ocsd_generic_trace_elem::isa
ocsd_isa isa
Definition: trc_gen_elem_types.h:80
ocsd_gen_trc_elem_t
enum _ocsd_gen_trc_elem_t ocsd_gen_trc_elem_t
_ocsd_generic_trace_elem::has_ts
uint32_t has_ts
Definition: trc_gen_elem_types.h:99
_ocsd_generic_trace_elem::last_instr_exec
uint32_t last_instr_exec
Definition: trc_gen_elem_types.h:92
OCSD_GEN_TRC_ELEM_UNKNOWN
Definition: trc_gen_elem_types.h:49
_ocsd_pe_context
Definition: ocsd_if_types.h:406
OCSD_GEN_TRC_ELEM_INSTR_RANGE
Definition: trc_gen_elem_types.h:54
OCSD_GEN_TRC_ELEM_EVENT
Definition: trc_gen_elem_types.h:61
OCSD_GEN_TRC_ELEM_SWTRACE
Definition: trc_gen_elem_types.h:62
_trace_event_t::ev_number
uint16_t ev_number
Definition: trc_gen_elem_types.h:75
_ocsd_generic_trace_elem::last_instr_cond
uint32_t last_instr_cond
Definition: trc_gen_elem_types.h:100
_ocsd_generic_trace_elem::extended_data
uint32_t extended_data
Definition: trc_gen_elem_types.h:98
ocsd_generic_trace_elem
struct _ocsd_generic_trace_elem ocsd_generic_trace_elem
_ocsd_generic_trace_elem::last_i_type
ocsd_instr_type last_i_type
Definition: trc_gen_elem_types.h:86
TRACE_ON_EX_DEBUG
Definition: trc_gen_elem_types.h:70
_ocsd_gen_trc_elem_t
_ocsd_gen_trc_elem_t
Definition: trc_gen_elem_types.h:47
OCSD_GEN_TRC_ELEM_TRACE_ON
Definition: trc_gen_elem_types.h:51
trace_event_t
struct _trace_event_t trace_event_t
ocsd_isa
enum _ocsd_isa ocsd_isa
EVENT_UNKNOWN
Definition: trc_gen_elem_types.h:121
_ocsd_generic_trace_elem::context
ocsd_pe_context context
Definition: trc_gen_elem_types.h:83
_ocsd_generic_trace_elem::cycle_count
uint32_t cycle_count
Definition: trc_gen_elem_types.h:85
_ocsd_generic_trace_elem::elem_type
ocsd_gen_trc_elem_t elem_type
Definition: trc_gen_elem_types.h:79
EVENT_NUMBERED
Definition: trc_gen_elem_types.h:123
_ocsd_generic_trace_elem::timestamp
uint64_t timestamp
Definition: trc_gen_elem_types.h:84
TRACE_ON_NORMAL
Definition: trc_gen_elem_types.h:68
OCSD_GEN_TRC_ELEM_ADDR_UNKNOWN
Definition: trc_gen_elem_types.h:56
_ocsd_generic_trace_elem::has_cc
uint32_t has_cc
Definition: trc_gen_elem_types.h:94
_ocsd_generic_trace_elem::trace_event
trace_event_t trace_event
Definition: trc_gen_elem_types.h:109