Commit | Line | Data |
---|---|---|
e11e382c FW |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!-- *************************************************************************** | |
019e49cb FW |
3 | * Copyright (c) 2013 École Polytechnique de Montréal |
4 | * | |
5 | * All rights reserved. This program and the accompanying materials are | |
6 | * made available under the terms of the Eclipse Public License v1.0 which | |
7 | * accompanies this distribution, and is available at | |
8 | * http://www.eclipse.org/legal/epl-v10.html | |
9 | * | |
10 | * Contributors: | |
d5efe032 | 11 | * Florian Wininger - Initial API and implementation |
019e49cb | 12 | *************************************************************************** --> |
e11e382c | 13 | <tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
d5efe032 | 14 | xsi:noNamespaceSchemaLocation="xmlDefinition.xsd"> |
e11e382c | 15 | |
d5efe032 AF |
16 | <timeGraphView id="org.eclipse.linuxtools.tmf.analysis.xml.ui.views.statesystem"> |
17 | <head> | |
18 | <analysis id="kernel.linux.sp" /> | |
19 | <label value="Xml Sample Kernel View" /> | |
20 | </head> | |
21 | <!-- StateValues --> | |
22 | <definedValue name="PROCESS_STATUS_UNKNOWN" value="0" color="#EEEEEE" /> | |
23 | <definedValue name="PROCESS_STATUS_WAIT_BLOCKED" value="1" color="#CCCCCC" /> | |
24 | <definedValue name="PROCESS_STATUS_RUN_USERMODE" value="2" color="#118811" /> | |
25 | <definedValue name="PROCESS_STATUS_RUN_SYSCALL" value="3" color="#0000EE" /> | |
26 | <definedValue name="PROCESS_STATUS_INTERRUPTED" value="4" color="#DDDD00" /> | |
27 | <definedValue name="PROCESS_STATUS_WAIT_FOR_CPU" value="5" color="#AA0000" /> | |
6b5218d0 | 28 | |
d5efe032 AF |
29 | <!-- Control Flow View --> |
30 | <entry path="CPUs/*"> | |
31 | <display type="constant" value="Status" /> | |
32 | <parent type="constant" value="PPID" /> | |
33 | <name type="constant" value="Exec_name" /> | |
34 | </entry> | |
35 | <entry path="Threads"> | |
36 | <display type="self" /> | |
37 | <entry path="*"> | |
38 | <display type="constant" value="Status" /> | |
39 | <parent type="constant" value="PPID" /> | |
40 | <name type="constant" value="Exec_name" /> | |
41 | </entry> | |
42 | </entry> | |
43 | </timeGraphView> | |
6b5218d0 | 44 | |
87c5447c GB |
45 | <xyView id="org.eclipse.linuxtools.tmf.analysis.xml.core.tests.xy"> |
46 | <head> | |
47 | <analysis id="kernel.linux.sp" /> | |
48 | <label value="Xml XY view" /> | |
49 | </head> | |
50 | ||
51 | <entry path="CPUs/*"> | |
52 | <display type="constant" value="Status" /> | |
53 | <name type="self" /> | |
54 | </entry> | |
55 | </xyView> | |
56 | ||
d5efe032 AF |
57 | <stateProvider id="kernel.linux.sp" version="1"> |
58 | <head> | |
59 | <traceType id="org.eclipse.linuxtools.lttng2.kernel.tracetype" /> | |
60 | <label value="Xml kernel State System" /> | |
61 | </head> | |
62 | <!-- StateValues --> | |
63 | <definedValue name="CPU_STATUS_IDLE" value="0" /> | |
64 | <definedValue name="CPU_STATUS_RUN_USERMODE" value="1" /> | |
65 | <definedValue name="CPU_STATUS_RUN_SYSCALL" value="2" /> | |
66 | <definedValue name="CPU_STATUS_IRQ" value="3" /> | |
67 | <definedValue name="CPU_STATUS_SOFTIRQ" value="4" /> | |
019e49cb | 68 | |
d5efe032 AF |
69 | <definedValue name="PROCESS_STATUS_UNKNOWN" value="0" /> |
70 | <definedValue name="PROCESS_STATUS_WAIT_BLOCKED" value="1" /> | |
71 | <definedValue name="PROCESS_STATUS_RUN_USERMODE" value="2" /> | |
72 | <definedValue name="PROCESS_STATUS_RUN_SYSCALL" value="3" /> | |
73 | <definedValue name="PROCESS_STATUS_INTERRUPTED" value="4" /> | |
74 | <definedValue name="PROCESS_STATUS_WAIT_FOR_CPU" value="5" /> | |
019e49cb | 75 | |
d5efe032 | 76 | <definedValue name="SOFT_IRQ_RAISED" value="-2" /> |
019e49cb | 77 | |
d5efe032 AF |
78 | <!-- Shortcut Variables --> |
79 | <location id="CurrentThread"> | |
80 | <stateAttribute type="constant" value="Threads" /> | |
81 | <stateAttribute type="query"> | |
82 | <stateAttribute type="constant" value="CPUs" /> | |
83 | <stateAttribute type="eventField" value="cpu" /> | |
84 | <stateAttribute type="constant" value="Current_thread" /> | |
85 | </stateAttribute> | |
86 | </location> | |
87 | <location id="CurrentCPU"> | |
88 | <stateAttribute type="constant" value="CPUs" /> | |
89 | <stateAttribute type="eventField" value="cpu" /> | |
90 | </location> | |
91 | <location id="CurrentIRQ"> | |
92 | <stateAttribute type="constant" value="Resources"/> | |
93 | <stateAttribute type="constant" value="IRQs"/> | |
94 | <stateAttribute type="eventField" value="irq"/> | |
95 | </location> | |
96 | <location id="CurrentSoftIRQ"> | |
97 | <stateAttribute type="constant" value="Resources" /> | |
98 | <stateAttribute type="constant" value="Soft_IRQs" /> | |
99 | <stateAttribute type="eventField" value="vec" /> | |
100 | </location> | |
101 | <location id="newCurrentThread"> | |
102 | <stateAttribute type="constant" value="Threads" /> | |
103 | <stateAttribute type="eventField" value="next_tid" /> | |
104 | </location> | |
019e49cb | 105 | |
d5efe032 AF |
106 | <!-- case 1 : exit_syscall : Fields: int64 ret --> |
107 | <eventHandler eventName="exit_syscall"> | |
108 | <stateChange> | |
109 | <stateAttribute type="location" value="CurrentThread" /> | |
110 | <stateAttribute type="constant" value="System_call" /> | |
111 | <stateValue type="null" /> | |
112 | </stateChange> | |
113 | <stateChange> | |
114 | <stateAttribute type="location" value="CurrentThread" /> | |
115 | <stateAttribute type="constant" value="Status" /> | |
116 | <stateValue type="int" value="$PROCESS_STATUS_RUN_USERMODE" /> | |
117 | </stateChange> | |
118 | <stateChange> | |
119 | <stateAttribute type="location" value="CurrentCPU" /> | |
120 | <stateAttribute type="constant" value="Status" /> | |
121 | <stateValue type="int" value="$CPU_STATUS_RUN_USERMODE" /> | |
122 | </stateChange> | |
123 | </eventHandler> | |
124 | <!-- case 2 : irq_handler_entry : Fields: int32 irq, string name --> | |
125 | <eventHandler eventName="irq_handler_entry"> | |
126 | <stateChange> | |
127 | <stateAttribute type="location" value="CurrentIRQ" /> | |
128 | <stateValue type="eventField" value="cpu" /> | |
129 | </stateChange> | |
130 | <stateChange> | |
131 | <stateAttribute type="location" value="CurrentThread" /> | |
132 | <stateAttribute type="constant" value="Status" /> | |
133 | <stateValue type="int" value="$PROCESS_STATUS_INTERRUPTED" /> | |
134 | </stateChange> | |
135 | <stateChange> | |
136 | <stateAttribute type="location" value="CurrentCPU" /> | |
137 | <stateAttribute type="constant" value="Status" /> | |
138 | <stateValue type="int" value="$CPU_STATUS_IRQ" /> | |
139 | </stateChange> | |
140 | </eventHandler> | |
141 | <!-- case 3 : irq_handler_exit : Fields: int32 irq, int32 ret --> | |
142 | <eventHandler eventName="irq_handler_exit"> | |
143 | <stateChange> | |
144 | <stateAttribute type="location" value="CurrentIRQ" /> | |
145 | <stateValue type="null" /> | |
146 | </stateChange> | |
147 | <stateChange> | |
148 | <if> | |
149 | <condition> | |
150 | <stateAttribute type="location" value="CurrentThread" /> | |
151 | <stateAttribute type="constant" value="System_call" /> | |
152 | <stateValue type="null" /> | |
153 | </condition> | |
154 | </if> | |
155 | <then> | |
156 | <stateAttribute type="location" value="CurrentThread" /> | |
157 | <stateAttribute type="constant" value="Status" /> | |
158 | <stateValue type="int" value="$PROCESS_STATUS_RUN_USERMODE" /> | |
159 | </then> | |
160 | <else> | |
161 | <stateAttribute type="location" value="CurrentThread" /> | |
162 | <stateAttribute type="constant" value="Status" /> | |
163 | <stateValue type="int" value="$PROCESS_STATUS_RUN_SYSCALL" /> | |
164 | </else> | |
165 | </stateChange> | |
166 | <stateChange> | |
167 | <if> | |
168 | <condition> | |
169 | <stateAttribute type="location" value="CurrentThread" /> | |
170 | <stateAttribute type="constant" value="System_call" /> | |
171 | <stateValue type="null" /> | |
172 | </condition> | |
173 | </if> | |
174 | <then> | |
175 | <stateAttribute type="location" value="CurrentCPU" /> | |
176 | <stateAttribute type="constant" value="Status" /> | |
177 | <stateValue type="int" value="$CPU_STATUS_RUN_USERMODE" /> | |
178 | </then> | |
179 | <else> | |
180 | <stateAttribute type="location" value="CurrentCPU" /> | |
181 | <stateAttribute type="constant" value="Status" /> | |
182 | <stateValue type="int" value="$CPU_STATUS_RUN_SYSCALL" /> | |
183 | </else> | |
184 | </stateChange> | |
185 | <stateChange> | |
186 | <if> | |
187 | <condition> | |
188 | <stateAttribute type="location" value="CurrentCPU" /> | |
189 | <stateAttribute type="constant" value="Current_thread" /> | |
190 | <stateValue type="null" /> | |
191 | </condition> | |
192 | </if> | |
193 | <then> | |
194 | <stateAttribute type="location" value="CurrentCPU" /> | |
195 | <stateAttribute type="constant" value="Status" /> | |
196 | <stateValue type="int" value="$CPU_STATUS_IDLE" /> | |
197 | </then> | |
198 | </stateChange> | |
199 | <stateChange> | |
200 | <if> | |
201 | <condition> | |
202 | <stateAttribute type="location" value="CurrentCPU" /> | |
203 | <stateAttribute type="constant" value="Current_thread" /> | |
204 | <stateValue type="int" value="0" /> | |
205 | </condition> | |
206 | </if> | |
207 | <then> | |
208 | <stateAttribute type="location" value="CurrentCPU" /> | |
209 | <stateAttribute type="constant" value="Status" /> | |
210 | <stateValue type="int" value="$CPU_STATUS_IDLE" /> | |
211 | </then> | |
212 | </stateChange> | |
213 | </eventHandler> | |
214 | <!-- case 4 : softirq_entry : Fields: int32 vec --> | |
215 | <eventHandler eventName="softirq_entry"> | |
216 | <stateChange> | |
217 | <stateAttribute type="location" value="CurrentSoftIRQ" /> | |
218 | <stateValue type="eventField" value="cpu" /> | |
219 | </stateChange> | |
220 | <stateChange> | |
221 | <stateAttribute type="location" value="CurrentThread" /> | |
222 | <stateAttribute type="constant" value="Status" /> | |
223 | <stateValue type="int" value="$PROCESS_STATUS_INTERRUPTED" /> | |
224 | </stateChange> | |
225 | <stateChange> | |
226 | <stateAttribute type="location" value="CurrentCPU" /> | |
227 | <stateAttribute type="constant" value="Status" /> | |
228 | <stateValue type="int" value="$CPU_STATUS_SOFTIRQ" /> | |
229 | </stateChange> | |
230 | </eventHandler> | |
231 | <!-- case 5 : softirq_exit : Fields: int32 vec --> | |
232 | <eventHandler eventName="softirq_exit"> | |
233 | <stateChange> | |
234 | <stateAttribute type="location" value="CurrentSoftIRQ" /> | |
235 | <stateValue type="null" /> | |
236 | </stateChange> | |
237 | <stateChange> | |
238 | <if> | |
239 | <condition> | |
240 | <stateAttribute type="location" value="CurrentThread" /> | |
241 | <stateAttribute type="constant" value="System_call" /> | |
242 | <stateValue type="null" /> | |
243 | </condition> | |
244 | </if> | |
245 | <then> | |
246 | <stateAttribute type="location" value="CurrentThread" /> | |
247 | <stateAttribute type="constant" value="Status" /> | |
248 | <stateValue type="int" value="$PROCESS_STATUS_RUN_USERMODE" /> | |
249 | </then> | |
250 | <else> | |
251 | <stateAttribute type="location" value="CurrentThread" /> | |
252 | <stateAttribute type="constant" value="Status" /> | |
253 | <stateValue type="int" value="$PROCESS_STATUS_RUN_SYSCALL" /> | |
254 | </else> | |
255 | </stateChange> | |
256 | <stateChange> | |
257 | <if> | |
258 | <condition> | |
259 | <stateAttribute type="location" value="CurrentThread" /> | |
260 | <stateAttribute type="constant" value="System_call" /> | |
261 | <stateValue type="null" /> | |
262 | </condition> | |
263 | </if> | |
264 | <then> | |
265 | <stateAttribute type="location" value="CurrentCPU" /> | |
266 | <stateAttribute type="constant" value="Status" /> | |
267 | <stateValue type="int" value="$CPU_STATUS_RUN_USERMODE" /> | |
268 | </then> | |
269 | <else> | |
270 | <stateAttribute type="location" value="CurrentCPU" /> | |
271 | <stateAttribute type="constant" value="Status" /> | |
272 | <stateValue type="int" value="$CPU_STATUS_RUN_SYSCALL" /> | |
273 | </else> | |
274 | </stateChange> | |
275 | <stateChange> | |
276 | <if> | |
277 | <condition> | |
278 | <stateAttribute type="location" value="CurrentCPU" /> | |
279 | <stateAttribute type="constant" value="Current_thread" /> | |
280 | <stateValue type="null" /> | |
281 | </condition> | |
282 | </if> | |
283 | <then> | |
284 | <stateAttribute type="location" value="CurrentCPU" /> | |
285 | <stateAttribute type="constant" value="Status" /> | |
286 | <stateValue type="int" value="$CPU_STATUS_IDLE" /> | |
287 | </then> | |
288 | </stateChange> | |
289 | <stateChange> | |
290 | <if> | |
291 | <condition> | |
292 | <stateAttribute type="location" value="CurrentCPU" /> | |
293 | <stateAttribute type="constant" value="Current_thread" /> | |
294 | <stateValue type="int" value="0" /> | |
295 | </condition> | |
296 | </if> | |
297 | <then> | |
298 | <stateAttribute type="location" value="CurrentCPU" /> | |
299 | <stateAttribute type="constant" value="Status" /> | |
300 | <stateValue type="int" value="$CPU_STATUS_IDLE" /> | |
301 | </then> | |
302 | </stateChange> | |
303 | </eventHandler> | |
304 | <!-- case 6 : softirq_raise : Fields: int32 vec --> | |
305 | <eventHandler eventName="softirq_raise"> | |
306 | <stateChange> | |
307 | <stateAttribute type="location" value="CurrentSoftIRQ" /> | |
308 | <stateValue type="int" value="$SOFT_IRQ_RAISED" /> | |
309 | </stateChange> | |
310 | </eventHandler> | |
311 | <!-- case 7 : sched_switch : Fields: string prev_comm, int32 prev_tid, | |
312 | int32 prev_prio, int64 prev_state, string next_comm, int32 next_tid, int32 | |
313 | next_prio --> | |
314 | <eventHandler eventName="sched_switch"> | |
315 | <stateChange> | |
316 | <if> | |
317 | <condition> | |
318 | <field name="prev_state" /> | |
319 | <stateValue type="long" value="0" /> | |
320 | </condition> | |
321 | </if> | |
322 | <then> | |
323 | <stateAttribute type="constant" value="Threads" /> | |
324 | <stateAttribute type="eventField" value="prev_tid" /> | |
325 | <stateAttribute type="constant" value="Status" /> | |
326 | <stateValue type="int" value="$PROCESS_STATUS_WAIT_FOR_CPU" /> | |
327 | </then> | |
328 | <else> | |
329 | <stateAttribute type="constant" value="Threads" /> | |
330 | <stateAttribute type="eventField" value="prev_tid" /> | |
331 | <stateAttribute type="constant" value="Status" /> | |
332 | <stateValue type="int" value="$PROCESS_STATUS_WAIT_BLOCKED" /> | |
333 | </else> | |
334 | </stateChange> | |
335 | <stateChange> | |
336 | <if> | |
337 | <condition> | |
338 | <stateAttribute type="location" value="newCurrentThread" /> | |
339 | <stateAttribute type="constant" value="System_call" /> | |
340 | <stateValue type="null" /> | |
341 | </condition> | |
342 | </if> | |
343 | <then> | |
344 | <stateAttribute type="location" value="newCurrentThread" /> | |
345 | <stateAttribute type="constant" value="Status" /> | |
346 | <stateValue type="int" value="$PROCESS_STATUS_RUN_USERMODE" /> | |
347 | </then> | |
348 | <else> | |
349 | <stateAttribute type="location" value="newCurrentThread" /> | |
350 | <stateAttribute type="constant" value="Status" /> | |
351 | <stateValue type="int" value="$PROCESS_STATUS_RUN_SYSCALL" /> | |
352 | </else> | |
353 | </stateChange> | |
354 | <stateChange> | |
355 | <stateAttribute type="location" value="newCurrentThread" /> | |
356 | <stateAttribute type="constant" value="Exec_name" /> | |
357 | <stateValue type="eventField" value="next_comm" /> | |
358 | </stateChange> | |
359 | <stateChange> | |
360 | <stateAttribute type="location" value="CurrentCPU" /> | |
361 | <stateAttribute type="constant" value="Current_thread" /> | |
362 | <stateValue type="eventField" value="next_tid" forcedType="int" /> | |
363 | </stateChange> | |
364 | <stateChange> | |
365 | <if> | |
366 | <not> | |
367 | <condition> | |
368 | <field name="next_tid" /> | |
369 | <stateValue type="long" value="0" /> | |
370 | </condition> | |
371 | </not> | |
372 | </if> | |
373 | <then> | |
374 | <if> | |
375 | <condition> | |
376 | <stateAttribute type="location" value="newCurrentThread" /> | |
377 | <stateAttribute type="constant" value="System_call" /> | |
378 | <stateValue type="null" /> | |
379 | </condition> | |
380 | </if> | |
381 | <then> | |
382 | <stateAttribute type="location" value="CurrentCPU" /> | |
383 | <stateAttribute type="constant" value="Status" /> | |
384 | <stateValue type="int" value="$CPU_STATUS_RUN_USERMODE" /> | |
385 | </then> | |
386 | <else> | |
387 | <stateAttribute type="location" value="CurrentCPU" /> | |
388 | <stateAttribute type="constant" value="Status" /> | |
389 | <stateValue type="int" value="$CPU_STATUS_RUN_SYSCALL" /> | |
390 | </else> | |
391 | </then> | |
392 | </stateChange> | |
393 | <stateChange> | |
394 | <if> | |
395 | <condition> | |
396 | <field name="next_tid" /> | |
397 | <stateValue type="long" value="0" /> | |
398 | </condition> | |
399 | </if> | |
400 | <then> | |
401 | <stateAttribute type="location" value="CurrentCPU" /> | |
402 | <stateAttribute type="constant" value="Status" /> | |
403 | <stateValue type="int" value="$CPU_STATUS_IDLE" /> | |
404 | </then> | |
405 | </stateChange> | |
406 | </eventHandler> | |
407 | <!-- case 8 : sched_process_fork : Fields: string parent_comm, int32 parent_tid, | |
408 | string child_comm, int32 child_tid --> | |
409 | <eventHandler eventName="sched_process_fork"> | |
410 | <stateChange> | |
411 | <stateAttribute type="constant" value="Threads" /> | |
412 | <stateAttribute type="eventField" value="child_tid" /> | |
413 | <stateAttribute type="constant" value="PPID" /> | |
414 | <stateValue type="eventField" value="parent_tid" forcedType="int" /> | |
415 | </stateChange> | |
416 | <stateChange> | |
417 | <stateAttribute type="constant" value="Threads" /> | |
418 | <stateAttribute type="eventField" value="child_tid" /> | |
419 | <stateAttribute type="constant" value="Exec_name" /> | |
420 | <stateValue type="eventField" value="child_comm" /> | |
421 | </stateChange> | |
422 | <stateChange> | |
423 | <stateAttribute type="constant" value="Threads" /> | |
424 | <stateAttribute type="eventField" value="child_tid" /> | |
425 | <stateAttribute type="constant" value="Status" /> | |
426 | <stateValue type="int" value="$PROCESS_STATUS_WAIT_FOR_CPU" /> | |
427 | </stateChange> | |
428 | <stateChange> | |
429 | <stateAttribute type="constant" value="Threads" /> | |
430 | <stateAttribute type="eventField" value="child_tid" /> | |
431 | <stateAttribute type="constant" value="System_call" /> | |
432 | <stateValue type="query"> | |
433 | <stateAttribute type="constant" value="Threads" /> | |
434 | <stateAttribute type="eventField" value="parent_tid" /> | |
435 | <stateAttribute type="constant" value="System_call" /> | |
436 | </stateValue> | |
437 | </stateChange> | |
438 | <stateChange> | |
439 | <if> | |
440 | <condition> | |
441 | <stateAttribute type="constant" value="Threads" /> | |
442 | <stateAttribute type="eventField" value="child_tid" /> | |
443 | <stateAttribute type="constant" value="System_call" /> | |
444 | <stateValue type="null" /> | |
445 | </condition> | |
446 | </if> | |
447 | <then> | |
448 | <stateAttribute type="constant" value="Threads" /> | |
449 | <stateAttribute type="eventField" value="child_tid" /> | |
450 | <stateAttribute type="constant" value="System_call" /> | |
451 | <stateValue type="string" value="sys_clone" /> | |
452 | </then> | |
453 | </stateChange> | |
454 | </eventHandler> | |
455 | <!-- case 10 : sched_process_free : Fields: string parent_comm, int32 parent_tid, | |
456 | string child_comm, int32 child_tid --> | |
457 | <eventHandler eventName="sched_process_free"> | |
458 | <stateChange> | |
459 | <stateAttribute type="constant" value="Threads" /> | |
460 | <stateAttribute type="eventField" value="tid" /> | |
461 | <stateValue type="delete" /> | |
462 | </stateChange> | |
463 | </eventHandler> | |
464 | <!-- case 11 : lttng_statedump_process_state : Fields: int32 type, int32 | |
465 | mode, int32 pid, int32 submode, int32 vpid, int32 ppid, int32 tid, string | |
466 | name, int32 status, int32 vtid --> | |
467 | <eventHandler eventName="lttng_statedump_process_state"> | |
468 | <stateChange> | |
469 | <if> | |
470 | <condition> | |
471 | <stateAttribute type="constant" value="Threads" /> | |
472 | <stateAttribute type="eventField" value="tid" /> | |
473 | <stateAttribute type="constant" value="Exec_name" /> | |
474 | <stateValue type="null" /> | |
475 | </condition> | |
476 | </if> | |
477 | <then> | |
478 | <stateAttribute type="constant" value="Threads" /> | |
479 | <stateAttribute type="eventField" value="tid" /> | |
480 | <stateAttribute type="constant" value="Exec_name" /> | |
481 | <stateValue type="eventField" value="name" /> | |
482 | </then> | |
483 | </stateChange> | |
484 | <stateChange> | |
485 | <if> | |
486 | <condition> | |
487 | <stateAttribute type="constant" value="Threads" /> | |
488 | <stateAttribute type="eventField" value="tid" /> | |
489 | <stateAttribute type="constant" value="PPID" /> | |
490 | <stateValue type="null" /> | |
491 | </condition> | |
492 | </if> | |
493 | <then> | |
494 | <stateAttribute type="constant" value="Threads" /> | |
495 | <stateAttribute type="eventField" value="tid" /> | |
496 | <stateAttribute type="constant" value="PPID" /> | |
497 | <stateValue type="eventField" value="ppid" forcedType="int" /> | |
498 | </then> | |
499 | </stateChange> | |
500 | <stateChange> | |
501 | <if> | |
502 | <and> | |
503 | <condition> | |
504 | <stateAttribute type="constant" value="Threads" /> | |
505 | <stateAttribute type="eventField" value="tid" /> | |
506 | <stateAttribute type="constant" value="Status" /> | |
507 | <stateValue type="null" /> | |
508 | </condition> | |
509 | <condition> | |
510 | <field name="status" /> | |
511 | <stateValue type="long" value="2" /> | |
512 | </condition> | |
513 | </and> | |
514 | </if> | |
515 | <then> | |
516 | <stateAttribute type="constant" value="Threads" /> | |
517 | <stateAttribute type="eventField" value="tid" /> | |
518 | <stateAttribute type="constant" value="Status" /> | |
519 | <stateValue type="int" value="$PROCESS_STATUS_WAIT_FOR_CPU" /> | |
520 | </then> | |
521 | </stateChange> | |
522 | <stateChange> | |
523 | <if> | |
524 | <and> | |
525 | <condition> | |
526 | <stateAttribute type="constant" value="Threads" /> | |
527 | <stateAttribute type="eventField" value="tid" /> | |
528 | <stateAttribute type="constant" value="Status" /> | |
529 | <stateValue type="null" /> | |
530 | </condition> | |
531 | <condition> | |
532 | <field name="status" /> | |
533 | <stateValue type="long" value="5" /> | |
534 | </condition> | |
535 | </and> | |
536 | </if> | |
537 | <then> | |
538 | <stateAttribute type="constant" value="Threads" /> | |
539 | <stateAttribute type="eventField" value="tid" /> | |
540 | <stateAttribute type="constant" value="Status" /> | |
541 | <stateValue type="int" value="$PROCESS_STATUS_WAIT_BLOCKED" /> | |
542 | </then> | |
543 | </stateChange> | |
544 | <stateChange> | |
545 | <if> | |
546 | <condition> | |
547 | <stateAttribute type="constant" value="Threads" /> | |
548 | <stateAttribute type="eventField" value="tid" /> | |
549 | <stateAttribute type="constant" value="Status" /> | |
550 | <stateValue type="null" /> | |
551 | </condition> | |
552 | </if> | |
553 | <then> | |
554 | <stateAttribute type="constant" value="Threads" /> | |
555 | <stateAttribute type="eventField" value="tid" /> | |
556 | <stateAttribute type="constant" value="Status" /> | |
557 | <stateValue type="int" value="$PROCESS_STATUS_UNKNOWN" /> | |
558 | </then> | |
559 | </stateChange> | |
560 | </eventHandler> | |
561 | <!-- case 12 : sched_wakeup : case 13 : sched_wakeup_new : Fields (same | |
562 | fields for both types): string comm, int32 tid, int32 prio, int32 success, | |
563 | int32 target_cpu --> | |
564 | <eventHandler eventName="sched_wakeup*"> | |
565 | <stateChange> | |
566 | <if> | |
567 | <and> | |
568 | <not> | |
569 | <condition> | |
570 | <stateAttribute type="constant" value="Threads" /> | |
571 | <stateAttribute type="eventField" value="tid" /> | |
572 | <stateAttribute type="constant" value="Status" /> | |
573 | <stateValue type="int" value="$PROCESS_STATUS_RUN_USERMODE" /> | |
574 | </condition> | |
575 | </not> | |
576 | <not> | |
577 | <condition> | |
578 | <stateAttribute type="constant" value="Threads" /> | |
579 | <stateAttribute type="eventField" value="tid" /> | |
580 | <stateAttribute type="constant" value="Status" /> | |
581 | <stateValue type="int" value="$PROCESS_STATUS_RUN_SYSCALL" /> | |
582 | </condition> | |
583 | </not> | |
584 | </and> | |
585 | </if> | |
586 | <then> | |
587 | <stateAttribute type="constant" value="Threads" /> | |
588 | <stateAttribute type="eventField" value="tid" /> | |
589 | <stateAttribute type="constant" value="Status" /> | |
590 | <stateValue type="int" value="$PROCESS_STATUS_WAIT_FOR_CPU" /> | |
591 | </then> | |
592 | </stateChange> | |
593 | </eventHandler> | |
594 | <!-- delfault : syscall --> | |
595 | <eventHandler eventName="sys_*"> | |
596 | <stateChange> | |
597 | <stateAttribute type="location" value="CurrentThread" /> | |
598 | <stateAttribute type="constant" value="System_call" /> | |
599 | <stateValue type="eventName" /> | |
600 | </stateChange> | |
601 | <stateChange> | |
602 | <stateAttribute type="location" value="CurrentThread" /> | |
603 | <stateAttribute type="constant" value="Status" /> | |
604 | <stateValue type="int" value="$PROCESS_STATUS_RUN_SYSCALL" /> | |
605 | </stateChange> | |
606 | <stateChange> | |
607 | <stateAttribute type="location" value="CurrentCPU" /> | |
608 | <stateAttribute type="constant" value="Status" /> | |
609 | <stateValue type="int" value="$CPU_STATUS_RUN_SYSCALL" /> | |
610 | </stateChange> | |
611 | </eventHandler> | |
612 | <!-- delfault : compat_syscall --> | |
613 | <eventHandler eventName="compat_sys_*"> | |
614 | <stateChange> | |
615 | <stateAttribute type="location" value="CurrentThread" /> | |
616 | <stateAttribute type="constant" value="System_call" /> | |
617 | <stateValue type="eventName" /> | |
618 | </stateChange> | |
619 | <stateChange> | |
620 | <stateAttribute type="location" value="CurrentThread" /> | |
621 | <stateAttribute type="constant" value="Status" /> | |
622 | <stateValue type="int" value="$PROCESS_STATUS_RUN_SYSCALL" /> | |
623 | </stateChange> | |
624 | <stateChange> | |
625 | <stateAttribute type="location" value="CurrentCPU" /> | |
626 | <stateAttribute type="constant" value="Status" /> | |
627 | <stateValue type="int" value="$CPU_STATUS_RUN_SYSCALL" /> | |
628 | </stateChange> | |
629 | </eventHandler> | |
630 | </stateProvider> | |
e11e382c | 631 | </tmfxml> |