L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
ktrace_events.h
1/* Note, automatically generated from Fiasco binary */
2#pragma once
3
4enum L4_ktrace_tbuf_entry_fixed
5{
6 l4_ktrace_tbuf_unused = 0,
7 l4_ktrace_tbuf_pf = 1,
8 l4_ktrace_tbuf_ipc = 2,
9 l4_ktrace_tbuf_ipc_res = 3,
10 l4_ktrace_tbuf_ipc_trace = 4,
11 l4_ktrace_tbuf_ke = 5,
12 l4_ktrace_tbuf_ke_reg = 6,
13 l4_ktrace_tbuf_breakpoint = 7,
14 l4_ktrace_tbuf_ke_bin = 8,
15 l4_ktrace_tbuf_dynentries = 9,
16 l4_ktrace_tbuf_max = 128,
17 l4_ktrace_tbuf_hidden = 128,
18};
19
20typedef unsigned long L4_ktrace_t__Address;
21typedef unsigned long L4_ktrace_t__Cap_index;
22typedef void L4_ktrace_t__Context;
23typedef void L4_ktrace_t__Context__Drq;
24typedef unsigned L4_ktrace_t__Context__Drq_log__Type;
25typedef unsigned L4_ktrace_t__Cpu_number;
26typedef void L4_ktrace_t__Irq_base;
27typedef void L4_ktrace_t__Irq_chip;
28typedef void L4_ktrace_t__Kobject;
29typedef unsigned long L4_ktrace_t__L4_error;
30typedef unsigned long L4_ktrace_t__L4_msg_tag;
31typedef unsigned long L4_ktrace_t__L4_obj_ref;
32typedef unsigned L4_ktrace_t__L4_timeout_pair;
33typedef unsigned long L4_ktrace_t__Mword;
34typedef void L4_ktrace_t__Rcu_item;
35typedef void L4_ktrace_t__Sched_context;
36typedef long L4_ktrace_t__Smword;
37typedef void L4_ktrace_t__Space;
38typedef unsigned short L4_ktrace_t__Unsigned16;
39typedef unsigned int L4_ktrace_t__Unsigned32;
40typedef unsigned long long L4_ktrace_t__Unsigned64;
41typedef unsigned char L4_ktrace_t__Unsigned8;
42typedef void L4_ktrace_t__cxx__Type_info;
43
44typedef struct __attribute__((packed))
45{
46 L4_ktrace_t__Mword _number; /* 0+4 */
47 L4_ktrace_t__Address _ip; /* 4+4 */
48 L4_ktrace_t__Unsigned64 _tsc; /* 8+8 */
49 L4_ktrace_t__Context *_ctx; /* 16+4 */
50 L4_ktrace_t__Unsigned32 _pmc1; /* 20+4 */
51 L4_ktrace_t__Unsigned32 _pmc2; /* 24+4 */
52 L4_ktrace_t__Unsigned32 _kclock; /* 28+4 */
53 L4_ktrace_t__Unsigned8 _type; /* 32+1 */
54 L4_ktrace_t__Unsigned8 _cpu; /* 33+1 */
55 union __attribute__((__packed__))
56 {
57 struct __attribute__((__packed__))
58 {
59 char __pre_pad[2];
60 void *func; /* 36+4 */
61 L4_ktrace_t__Context *thread; /* 40+4 */
62 L4_ktrace_t__Context__Drq *rq; /* 44+4 */
63 L4_ktrace_t__Cpu_number target_cpu; /* 48+4 */
64 L4_ktrace_t__Context__Drq_log__Type type; /* 52+4 */
65 char wait; /* 56+1 */
66 } drq; /* 64 */
67 struct __attribute__((__packed__))
68 {
69 char __pre_pad[2];
70 L4_ktrace_t__Mword state; /* 36+4 */
71 L4_ktrace_t__Mword ip; /* 40+4 */
72 L4_ktrace_t__Mword sp; /* 44+4 */
73 L4_ktrace_t__Mword space; /* 48+4 */
74 L4_ktrace_t__Mword err; /* 52+4 */
75 unsigned char type; /* 56+1 */
76 unsigned char trap; /* 57+1 */
77 } vcpu; /* 64 */
78 struct __attribute__((__packed__))
79 {
80 char __pre_pad[2];
81 L4_ktrace_t__Smword op; /* 36+4 */
82 L4_ktrace_t__Cap_index buffer; /* 40+4 */
83 L4_ktrace_t__Mword id; /* 44+4 */
84 L4_ktrace_t__Mword ram; /* 48+4 */
85 L4_ktrace_t__Mword newo; /* 52+4 */
86 } factory; /* 56 */
87 struct __attribute__((__packed__))
88 {
89 char __pre_pad[2];
90 L4_ktrace_t__Mword gate_dbg_id; /* 36+4 */
91 L4_ktrace_t__Mword thread_dbg_id; /* 40+4 */
92 L4_ktrace_t__Mword label; /* 44+4 */
93 } gate; /* 48 */
94 struct __attribute__((__packed__))
95 {
96 char __pre_pad[2];
97 L4_ktrace_t__Irq_base *obj; /* 36+4 */
98 L4_ktrace_t__Irq_chip *chip; /* 40+4 */
99 L4_ktrace_t__Mword pin; /* 44+4 */
100 } irq; /* 48 */
101 struct __attribute__((__packed__))
102 {
103 char __pre_pad[2];
104 L4_ktrace_t__Kobject *obj; /* 36+4 */
105 L4_ktrace_t__Mword id; /* 40+4 */
106 L4_ktrace_t__cxx__Type_info *type; /* 44+4 */
107 L4_ktrace_t__Mword ram; /* 48+4 */
108 } destroy; /* 56 */
109 struct __attribute__((__packed__))
110 {
111 char __pre_pad[2];
112 L4_ktrace_t__Cpu_number cpu; /* 36+4 */
113 L4_ktrace_t__Rcu_item *item; /* 40+4 */
114 void *cb; /* 44+4 */
115 unsigned char event; /* 48+1 */
116 } rcu; /* 56 */
117 struct __attribute__((__packed__))
118 {
119 char __pre_pad[2];
120 L4_ktrace_t__Mword id; /* 36+4 */
121 L4_ktrace_t__Mword mask; /* 40+4 */
122 L4_ktrace_t__Mword fpage; /* 44+4 */
123 char map; /* 48+1 */
124 } tmap; /* 56 */
125 struct __attribute__((__packed__))
126 {
127 char __pre_pad[2];
128 L4_ktrace_t__Address _address; /* 36+4 */
129 int _len; /* 40+4 */
130 L4_ktrace_t__Mword _value; /* 44+4 */
131 int _mode; /* 48+4 */
132 } bp; /* 56 */
133 struct __attribute__((__packed__))
134 {
135 char __pre_pad[2];
136 L4_ktrace_t__Context *dst; /* 36+4 */
137 L4_ktrace_t__Context *dst_orig; /* 40+4 */
138 L4_ktrace_t__Address kernel_ip; /* 44+4 */
139 L4_ktrace_t__Mword lock_cnt; /* 48+4 */
140 L4_ktrace_t__Space *from_space; /* 52+4 */
141 L4_ktrace_t__Sched_context *from_sched; /* 56+4 */
142 L4_ktrace_t__Mword from_prio; /* 60+4 */
143 } context_switch; /* 64 */
144 struct __attribute__((__packed__))
145 {
146 } empty; /* 40 */
147 struct __attribute__((__packed__))
148 {
149 char __pre_pad[2];
150 L4_ktrace_t__L4_msg_tag _tag; /* 36+4 */
151 L4_ktrace_t__Mword _dword[2]; /* 40+8 */
152 L4_ktrace_t__L4_obj_ref _dst; /* 48+4 */
153 L4_ktrace_t__Mword _dbg_id; /* 52+4 */
154 L4_ktrace_t__Mword _label; /* 56+4 */
155 L4_ktrace_t__L4_timeout_pair _timeout; /* 60+4 */
156 } ipc; /* 64 */
157 struct __attribute__((__packed__))
158 {
159 char __pre_pad[2];
160 L4_ktrace_t__L4_msg_tag _tag; /* 36+4 */
161 L4_ktrace_t__Mword _dword[2]; /* 40+8 */
162 L4_ktrace_t__L4_error _result; /* 48+4 */
163 L4_ktrace_t__Mword _from; /* 52+4 */
164 L4_ktrace_t__Mword _pair_event; /* 56+4 */
165 L4_ktrace_t__Unsigned8 _have_snd; /* 60+1 */
166 L4_ktrace_t__Unsigned8 _is_np; /* 61+1 */
167 } ipc_res; /* 64 */
168 struct __attribute__((__packed__))
169 {
170 char __pre_pad[2];
171 L4_ktrace_t__Unsigned64 _snd_tsc; /* 36+8 */
172 L4_ktrace_t__L4_msg_tag _result; /* 44+4 */
173 L4_ktrace_t__L4_obj_ref _snd_dst; /* 48+4 */
174 L4_ktrace_t__Mword _rcv_dst; /* 52+4 */
175 L4_ktrace_t__Unsigned8 _snd_desc; /* 56+1 */
176 L4_ktrace_t__Unsigned8 _rcv_desc; /* 57+1 */
177 } ipc_trace; /* 64 */
178 struct __attribute__((__packed__))
179 {
180 char __pre_pad[2];
181 union __attribute__((__packed__)) {
182 char msg[24]; /* 0+24 */
183 struct __attribute__((__packed__)) {
184 char tag[2]; /* 0+2 */
185 char __pad_1[2];
186 char *ptr; /* 4+4 */
187 } mptr; /* 0+8 */
188 } msg; /* 36+24 */
189 } ke; /* 64 */
190 struct __attribute__((__packed__))
191 {
192 char _msg[24]; /* 34+24 */
193 } ke_bin; /* 64 */
194 struct __attribute__((__packed__))
195 {
196 char __pre_pad[2];
197 L4_ktrace_t__Mword v[3]; /* 36+12 */
198 union __attribute__((__packed__)) {
199 char msg[12]; /* 0+12 */
200 struct __attribute__((__packed__)) {
201 char tag[2]; /* 0+2 */
202 char __pad_1[2];
203 char *ptr; /* 4+4 */
204 } mptr; /* 0+8 */
205 } msg; /* 48+12 */
206 } ke_reg; /* 64 */
207 struct __attribute__((__packed__))
208 {
209 char __pre_pad[2];
210 L4_ktrace_t__Address _pfa; /* 36+4 */
211 L4_ktrace_t__Mword _error; /* 40+4 */
212 L4_ktrace_t__Space *_space; /* 44+4 */
213 } pf; /* 48 */
214 struct __attribute__((__packed__))
215 {
216 unsigned short mode; /* 34+2 */
217 L4_ktrace_t__Context *owner; /* 36+4 */
218 unsigned short id; /* 40+2 */
219 unsigned short prio; /* 42+2 */
220 long left; /* 44+4 */
221 unsigned long quantum; /* 48+4 */
222 } sched; /* 56 */
223 struct __attribute__((__packed__))
224 {
225 L4_ktrace_t__Unsigned8 _trapno; /* 34+1 */
226 L4_ktrace_t__Unsigned16 _error; /* 35+2 */
227 L4_ktrace_t__Mword _ebp; /* 37+4 */
228 L4_ktrace_t__Mword _cr2; /* 41+4 */
229 L4_ktrace_t__Mword _eax; /* 45+4 */
230 L4_ktrace_t__Mword _eflags; /* 49+4 */
231 L4_ktrace_t__Mword _esp; /* 53+4 */
232 L4_ktrace_t__Unsigned16 _cs; /* 57+2 */
233 L4_ktrace_t__Unsigned16 _ds; /* 59+2 */
234 } trap; /* 64 */
235 struct __attribute__((__packed__))
236 {
237 char _padding[24]; /* 34+24 */
238 char __post_pad[6]; /* 58+6 */
239 } fullsize; /* 64 */
240 struct __attribute__((__packed__))
241 {
242 char __pre_pad[2];
243 L4_ktrace_t__Cap_index cap_idx; /* 36+4 */
244 } ieh; /* 40 */
245 struct __attribute__((__packed__))
246 {
247 char __pre_pad[2];
248 L4_ktrace_t__Mword pfa; /* 36+4 */
249 L4_ktrace_t__Cap_index cap_idx; /* 40+4 */
250 L4_ktrace_t__Mword err; /* 44+4 */
251 } ipfh; /* 48 */
252 struct __attribute__((__packed__))
253 {
254 char __pre_pad[2];
255 L4_ktrace_t__Mword id; /* 36+4 */
256 L4_ktrace_t__Mword ip; /* 40+4 */
257 L4_ktrace_t__Mword sp; /* 44+4 */
258 L4_ktrace_t__Mword op; /* 48+4 */
259 } exregs; /* 56 */
260 struct __attribute__((__packed__))
261 {
262 char __pre_pad[2];
263 L4_ktrace_t__Mword state; /* 36+4 */
264 L4_ktrace_t__Address user_ip; /* 40+4 */
265 L4_ktrace_t__Cpu_number src_cpu; /* 44+4 */
266 L4_ktrace_t__Cpu_number target_cpu; /* 48+4 */
267 } migration; /* 56 */
268 struct __attribute__((__packed__))
269 {
270 char __pre_pad[2];
271 L4_ktrace_t__Irq_base *obj; /* 36+4 */
272 L4_ktrace_t__Address user_ip; /* 40+4 */
273 } timer; /* 48 */
274 struct __attribute__((__packed__))
275 {
276 char __pre_pad[2];
277 L4_ktrace_t__Mword exitcode; /* 36+4 */
278 L4_ktrace_t__Mword exitinfo1; /* 40+4 */
279 L4_ktrace_t__Mword exitinfo2; /* 44+4 */
280 L4_ktrace_t__Mword rip; /* 48+4 */
281 } svm; /* 56 */
282 } m;
283} l4_tracebuffer_entry_t;