OpenCSD - CoreSight Trace Decode Library  0.9.0
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  };
101  uint32_t flag_bits;
102  };
103 
105  union {
106  uint32_t exception_number;
110  uint32_t num_instr_range;
111  };
112 
113  const void *ptr_extended_data;
116 
117 
118 typedef enum _event_t {
122 } event_t;
123 
124 
126 #endif // ARM_TRC_GEN_ELEM_TYPES_H_INCLUDED
127 
128 /* End of File opencsd/trc_gen_elem_types.h */
uint64_t ocsd_vaddr_t
_trace_on_reason_t
enum _ocsd_instr_type ocsd_instr_type
ocsd_instr_subtype last_i_subtype
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
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