1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- ***************************************************************************
3 * Copyright (c) 2013 École Polytechnique de Montréal
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
11 * Florian Wininger - Initial API and implementation
12 *************************************************************************** -->
13 <tmfxml xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
14 xsi:
noNamespaceSchemaLocation=
"xmlDefinition.xsd">
16 <timeGraphView id=
"org.eclipse.linuxtools.tmf.analysis.xml.ui.views.statesystem">
18 <analysis id=
"kernel.linux.sp" />
19 <label value=
"Xml Sample Kernel View" />
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" />
29 <!-- Control Flow View -->
31 <display type=
"constant" value=
"Status" />
32 <parent type=
"constant" value=
"PPID" />
33 <name type=
"constant" value=
"Exec_name" />
35 <entry path=
"Threads">
36 <display type=
"self" />
38 <display type=
"constant" value=
"Status" />
39 <parent type=
"constant" value=
"PPID" />
40 <name type=
"constant" value=
"Exec_name" />
45 <xyView id=
"org.eclipse.linuxtools.tmf.analysis.xml.core.tests.xy">
47 <analysis id=
"kernel.linux.sp" />
48 <label value=
"Xml XY view" />
52 <display type=
"constant" value=
"Status" />
57 <stateProvider id=
"kernel.linux.sp" version=
"1">
59 <traceType id=
"org.eclipse.linuxtools.lttng2.kernel.tracetype" />
60 <label value=
"Xml kernel State System" />
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" />
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" />
76 <definedValue name=
"SOFT_IRQ_RAISED" value=
"-2" />
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" />
87 <location id=
"CurrentCPU">
88 <stateAttribute type=
"constant" value=
"CPUs" />
89 <stateAttribute type=
"eventField" value=
"cpu" />
91 <location id=
"CurrentIRQ">
92 <stateAttribute type=
"constant" value=
"Resources"/>
93 <stateAttribute type=
"constant" value=
"IRQs"/>
94 <stateAttribute type=
"eventField" value=
"irq"/>
96 <location id=
"CurrentSoftIRQ">
97 <stateAttribute type=
"constant" value=
"Resources" />
98 <stateAttribute type=
"constant" value=
"Soft_IRQs" />
99 <stateAttribute type=
"eventField" value=
"vec" />
101 <location id=
"newCurrentThread">
102 <stateAttribute type=
"constant" value=
"Threads" />
103 <stateAttribute type=
"eventField" value=
"next_tid" />
106 <!-- case 1 : exit_syscall : Fields: int64 ret -->
107 <eventHandler eventName=
"exit_syscall">
109 <stateAttribute type=
"location" value=
"CurrentThread" />
110 <stateAttribute type=
"constant" value=
"System_call" />
111 <stateValue type=
"null" />
114 <stateAttribute type=
"location" value=
"CurrentThread" />
115 <stateAttribute type=
"constant" value=
"Status" />
116 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
119 <stateAttribute type=
"location" value=
"CurrentCPU" />
120 <stateAttribute type=
"constant" value=
"Status" />
121 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
124 <!-- case 2 : irq_handler_entry : Fields: int32 irq, string name -->
125 <eventHandler eventName=
"irq_handler_entry">
127 <stateAttribute type=
"location" value=
"CurrentIRQ" />
128 <stateValue type=
"eventField" value=
"cpu" />
131 <stateAttribute type=
"location" value=
"CurrentThread" />
132 <stateAttribute type=
"constant" value=
"Status" />
133 <stateValue type=
"int" value=
"$PROCESS_STATUS_INTERRUPTED" />
136 <stateAttribute type=
"location" value=
"CurrentCPU" />
137 <stateAttribute type=
"constant" value=
"Status" />
138 <stateValue type=
"int" value=
"$CPU_STATUS_IRQ" />
141 <!-- case 3 : irq_handler_exit : Fields: int32 irq, int32 ret -->
142 <eventHandler eventName=
"irq_handler_exit">
144 <stateAttribute type=
"location" value=
"CurrentIRQ" />
145 <stateValue type=
"null" />
150 <stateAttribute type=
"location" value=
"CurrentThread" />
151 <stateAttribute type=
"constant" value=
"System_call" />
152 <stateValue type=
"null" />
156 <stateAttribute type=
"location" value=
"CurrentThread" />
157 <stateAttribute type=
"constant" value=
"Status" />
158 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
161 <stateAttribute type=
"location" value=
"CurrentThread" />
162 <stateAttribute type=
"constant" value=
"Status" />
163 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
169 <stateAttribute type=
"location" value=
"CurrentThread" />
170 <stateAttribute type=
"constant" value=
"System_call" />
171 <stateValue type=
"null" />
175 <stateAttribute type=
"location" value=
"CurrentCPU" />
176 <stateAttribute type=
"constant" value=
"Status" />
177 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
180 <stateAttribute type=
"location" value=
"CurrentCPU" />
181 <stateAttribute type=
"constant" value=
"Status" />
182 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
188 <stateAttribute type=
"location" value=
"CurrentCPU" />
189 <stateAttribute type=
"constant" value=
"Current_thread" />
190 <stateValue type=
"null" />
194 <stateAttribute type=
"location" value=
"CurrentCPU" />
195 <stateAttribute type=
"constant" value=
"Status" />
196 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
202 <stateAttribute type=
"location" value=
"CurrentCPU" />
203 <stateAttribute type=
"constant" value=
"Current_thread" />
204 <stateValue type=
"int" value=
"0" />
208 <stateAttribute type=
"location" value=
"CurrentCPU" />
209 <stateAttribute type=
"constant" value=
"Status" />
210 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
214 <!-- case 4 : softirq_entry : Fields: int32 vec -->
215 <eventHandler eventName=
"softirq_entry">
217 <stateAttribute type=
"location" value=
"CurrentSoftIRQ" />
218 <stateValue type=
"eventField" value=
"cpu" />
221 <stateAttribute type=
"location" value=
"CurrentThread" />
222 <stateAttribute type=
"constant" value=
"Status" />
223 <stateValue type=
"int" value=
"$PROCESS_STATUS_INTERRUPTED" />
226 <stateAttribute type=
"location" value=
"CurrentCPU" />
227 <stateAttribute type=
"constant" value=
"Status" />
228 <stateValue type=
"int" value=
"$CPU_STATUS_SOFTIRQ" />
231 <!-- case 5 : softirq_exit : Fields: int32 vec -->
232 <eventHandler eventName=
"softirq_exit">
234 <stateAttribute type=
"location" value=
"CurrentSoftIRQ" />
235 <stateValue type=
"null" />
240 <stateAttribute type=
"location" value=
"CurrentThread" />
241 <stateAttribute type=
"constant" value=
"System_call" />
242 <stateValue type=
"null" />
246 <stateAttribute type=
"location" value=
"CurrentThread" />
247 <stateAttribute type=
"constant" value=
"Status" />
248 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
251 <stateAttribute type=
"location" value=
"CurrentThread" />
252 <stateAttribute type=
"constant" value=
"Status" />
253 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
259 <stateAttribute type=
"location" value=
"CurrentThread" />
260 <stateAttribute type=
"constant" value=
"System_call" />
261 <stateValue type=
"null" />
265 <stateAttribute type=
"location" value=
"CurrentCPU" />
266 <stateAttribute type=
"constant" value=
"Status" />
267 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
270 <stateAttribute type=
"location" value=
"CurrentCPU" />
271 <stateAttribute type=
"constant" value=
"Status" />
272 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
278 <stateAttribute type=
"location" value=
"CurrentCPU" />
279 <stateAttribute type=
"constant" value=
"Current_thread" />
280 <stateValue type=
"null" />
284 <stateAttribute type=
"location" value=
"CurrentCPU" />
285 <stateAttribute type=
"constant" value=
"Status" />
286 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
292 <stateAttribute type=
"location" value=
"CurrentCPU" />
293 <stateAttribute type=
"constant" value=
"Current_thread" />
294 <stateValue type=
"int" value=
"0" />
298 <stateAttribute type=
"location" value=
"CurrentCPU" />
299 <stateAttribute type=
"constant" value=
"Status" />
300 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
304 <!-- case 6 : softirq_raise : Fields: int32 vec -->
305 <eventHandler eventName=
"softirq_raise">
307 <stateAttribute type=
"location" value=
"CurrentSoftIRQ" />
308 <stateValue type=
"int" value=
"$SOFT_IRQ_RAISED" />
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
314 <eventHandler eventName=
"sched_switch">
318 <field name=
"prev_state" />
319 <stateValue type=
"long" value=
"0" />
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" />
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" />
338 <stateAttribute type=
"location" value=
"newCurrentThread" />
339 <stateAttribute type=
"constant" value=
"System_call" />
340 <stateValue type=
"null" />
344 <stateAttribute type=
"location" value=
"newCurrentThread" />
345 <stateAttribute type=
"constant" value=
"Status" />
346 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
349 <stateAttribute type=
"location" value=
"newCurrentThread" />
350 <stateAttribute type=
"constant" value=
"Status" />
351 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
355 <stateAttribute type=
"location" value=
"newCurrentThread" />
356 <stateAttribute type=
"constant" value=
"Exec_name" />
357 <stateValue type=
"eventField" value=
"next_comm" />
360 <stateAttribute type=
"location" value=
"CurrentCPU" />
361 <stateAttribute type=
"constant" value=
"Current_thread" />
362 <stateValue type=
"eventField" value=
"next_tid" forcedType=
"int" />
368 <field name=
"next_tid" />
369 <stateValue type=
"long" value=
"0" />
376 <stateAttribute type=
"location" value=
"newCurrentThread" />
377 <stateAttribute type=
"constant" value=
"System_call" />
378 <stateValue type=
"null" />
382 <stateAttribute type=
"location" value=
"CurrentCPU" />
383 <stateAttribute type=
"constant" value=
"Status" />
384 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
387 <stateAttribute type=
"location" value=
"CurrentCPU" />
388 <stateAttribute type=
"constant" value=
"Status" />
389 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
396 <field name=
"next_tid" />
397 <stateValue type=
"long" value=
"0" />
401 <stateAttribute type=
"location" value=
"CurrentCPU" />
402 <stateAttribute type=
"constant" value=
"Status" />
403 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
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">
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" />
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" />
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" />
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" />
441 <stateAttribute type=
"constant" value=
"Threads" />
442 <stateAttribute type=
"eventField" value=
"child_tid" />
443 <stateAttribute type=
"constant" value=
"System_call" />
444 <stateValue type=
"null" />
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" />
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">
459 <stateAttribute type=
"constant" value=
"Threads" />
460 <stateAttribute type=
"eventField" value=
"tid" />
461 <stateValue type=
"delete" />
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">
471 <stateAttribute type=
"constant" value=
"Threads" />
472 <stateAttribute type=
"eventField" value=
"tid" />
473 <stateAttribute type=
"constant" value=
"Exec_name" />
474 <stateValue type=
"null" />
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" />
487 <stateAttribute type=
"constant" value=
"Threads" />
488 <stateAttribute type=
"eventField" value=
"tid" />
489 <stateAttribute type=
"constant" value=
"PPID" />
490 <stateValue type=
"null" />
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" />
504 <stateAttribute type=
"constant" value=
"Threads" />
505 <stateAttribute type=
"eventField" value=
"tid" />
506 <stateAttribute type=
"constant" value=
"Status" />
507 <stateValue type=
"null" />
510 <field name=
"status" />
511 <stateValue type=
"long" value=
"2" />
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" />
526 <stateAttribute type=
"constant" value=
"Threads" />
527 <stateAttribute type=
"eventField" value=
"tid" />
528 <stateAttribute type=
"constant" value=
"Status" />
529 <stateValue type=
"null" />
532 <field name=
"status" />
533 <stateValue type=
"long" value=
"5" />
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" />
547 <stateAttribute type=
"constant" value=
"Threads" />
548 <stateAttribute type=
"eventField" value=
"tid" />
549 <stateAttribute type=
"constant" value=
"Status" />
550 <stateValue type=
"null" />
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" />
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,
564 <eventHandler eventName=
"sched_wakeup*">
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" />
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" />
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" />
594 <!-- delfault : syscall -->
595 <eventHandler eventName=
"sys_*">
597 <stateAttribute type=
"location" value=
"CurrentThread" />
598 <stateAttribute type=
"constant" value=
"System_call" />
599 <stateValue type=
"eventName" />
602 <stateAttribute type=
"location" value=
"CurrentThread" />
603 <stateAttribute type=
"constant" value=
"Status" />
604 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
607 <stateAttribute type=
"location" value=
"CurrentCPU" />
608 <stateAttribute type=
"constant" value=
"Status" />
609 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
612 <!-- delfault : compat_syscall -->
613 <eventHandler eventName=
"compat_sys_*">
615 <stateAttribute type=
"location" value=
"CurrentThread" />
616 <stateAttribute type=
"constant" value=
"System_call" />
617 <stateValue type=
"eventName" />
620 <stateAttribute type=
"location" value=
"CurrentThread" />
621 <stateAttribute type=
"constant" value=
"Status" />
622 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
625 <stateAttribute type=
"location" value=
"CurrentCPU" />
626 <stateAttribute type=
"constant" value=
"Status" />
627 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
This page took 0.043748 seconds and 5 git commands to generate.