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 <stateProvider id=
"kernel.linux.sp" version=
"1">
18 <traceType id=
"org.eclipse.linuxtools.lttng2.kernel.tracetype" />
19 <label value=
"Xml kernel State System" />
22 <definedValue name=
"CPU_STATUS_IDLE" value=
"0" />
23 <definedValue name=
"CPU_STATUS_RUN_USERMODE" value=
"1" />
24 <definedValue name=
"CPU_STATUS_RUN_SYSCALL" value=
"2" />
25 <definedValue name=
"CPU_STATUS_IRQ" value=
"3" />
26 <definedValue name=
"CPU_STATUS_SOFTIRQ" value=
"4" />
28 <definedValue name=
"PROCESS_STATUS_UNKNOWN" value=
"0" />
29 <definedValue name=
"PROCESS_STATUS_WAIT_BLOCKED" value=
"1" />
30 <definedValue name=
"PROCESS_STATUS_RUN_USERMODE" value=
"2" />
31 <definedValue name=
"PROCESS_STATUS_RUN_SYSCALL" value=
"3" />
32 <definedValue name=
"PROCESS_STATUS_INTERRUPTED" value=
"4" />
33 <definedValue name=
"PROCESS_STATUS_WAIT_FOR_CPU" value=
"5" />
35 <definedValue name=
"SOFT_IRQ_RAISED" value=
"-2" />
37 <!-- Shortcut Variables -->
38 <location id=
"CurrentThread">
39 <stateAttribute type=
"constant" value=
"Threads" />
40 <stateAttribute type=
"query">
41 <stateAttribute type=
"constant" value=
"CPUs" />
42 <stateAttribute type=
"eventField" value=
"cpu" />
43 <stateAttribute type=
"constant" value=
"Current_thread" />
46 <location id=
"CurrentCPU">
47 <stateAttribute type=
"constant" value=
"CPUs" />
48 <stateAttribute type=
"eventField" value=
"cpu" />
50 <location id=
"CurrentIRQ">
51 <stateAttribute type=
"constant" value=
"Resources"/>
52 <stateAttribute type=
"constant" value=
"IRQs"/>
53 <stateAttribute type=
"eventField" value=
"irq"/>
55 <location id=
"CurrentSoftIRQ">
56 <stateAttribute type=
"constant" value=
"Resources" />
57 <stateAttribute type=
"constant" value=
"Soft_IRQs" />
58 <stateAttribute type=
"eventField" value=
"vec" />
60 <location id=
"newCurrentThread">
61 <stateAttribute type=
"constant" value=
"Threads" />
62 <stateAttribute type=
"eventField" value=
"next_tid" />
65 <!-- case 1 : exit_syscall : Fields: int64 ret -->
66 <eventHandler eventName=
"exit_syscall">
68 <stateAttribute type=
"location" value=
"CurrentThread" />
69 <stateAttribute type=
"constant" value=
"System_call" />
70 <stateValue type=
"null" />
73 <stateAttribute type=
"location" value=
"CurrentThread" />
74 <stateAttribute type=
"constant" value=
"Status" />
75 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
78 <stateAttribute type=
"location" value=
"CurrentCPU" />
79 <stateAttribute type=
"constant" value=
"Status" />
80 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
83 <!-- case 2 : irq_handler_entry : Fields: int32 irq, string name -->
84 <eventHandler eventName=
"irq_handler_entry">
86 <stateAttribute type=
"location" value=
"CurrentIRQ" />
87 <stateValue type=
"eventField" value=
"cpu" />
90 <stateAttribute type=
"location" value=
"CurrentThread" />
91 <stateAttribute type=
"constant" value=
"Status" />
92 <stateValue type=
"int" value=
"$PROCESS_STATUS_INTERRUPTED" />
95 <stateAttribute type=
"location" value=
"CurrentCPU" />
96 <stateAttribute type=
"constant" value=
"Status" />
97 <stateValue type=
"int" value=
"$CPU_STATUS_IRQ" />
100 <!-- case 3 : irq_handler_exit : Fields: int32 irq, int32 ret -->
101 <eventHandler eventName=
"irq_handler_exit">
103 <stateAttribute type=
"location" value=
"CurrentIRQ" />
104 <stateValue type=
"null" />
109 <stateAttribute type=
"location" value=
"CurrentThread" />
110 <stateAttribute type=
"constant" value=
"System_call" />
111 <stateValue type=
"null" />
115 <stateAttribute type=
"location" value=
"CurrentThread" />
116 <stateAttribute type=
"constant" value=
"Status" />
117 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
120 <stateAttribute type=
"location" value=
"CurrentThread" />
121 <stateAttribute type=
"constant" value=
"Status" />
122 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
128 <stateAttribute type=
"location" value=
"CurrentThread" />
129 <stateAttribute type=
"constant" value=
"System_call" />
130 <stateValue type=
"null" />
134 <stateAttribute type=
"location" value=
"CurrentCPU" />
135 <stateAttribute type=
"constant" value=
"Status" />
136 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
139 <stateAttribute type=
"location" value=
"CurrentCPU" />
140 <stateAttribute type=
"constant" value=
"Status" />
141 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
147 <stateAttribute type=
"location" value=
"CurrentCPU" />
148 <stateAttribute type=
"constant" value=
"Current_thread" />
149 <stateValue type=
"null" />
153 <stateAttribute type=
"location" value=
"CurrentCPU" />
154 <stateAttribute type=
"constant" value=
"Status" />
155 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
161 <stateAttribute type=
"location" value=
"CurrentCPU" />
162 <stateAttribute type=
"constant" value=
"Current_thread" />
163 <stateValue type=
"int" value=
"0" />
167 <stateAttribute type=
"location" value=
"CurrentCPU" />
168 <stateAttribute type=
"constant" value=
"Status" />
169 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
173 <!-- case 4 : softirq_entry : Fields: int32 vec -->
174 <eventHandler eventName=
"softirq_entry">
176 <stateAttribute type=
"location" value=
"CurrentSoftIRQ" />
177 <stateValue type=
"eventField" value=
"cpu" />
180 <stateAttribute type=
"location" value=
"CurrentThread" />
181 <stateAttribute type=
"constant" value=
"Status" />
182 <stateValue type=
"int" value=
"$PROCESS_STATUS_INTERRUPTED" />
185 <stateAttribute type=
"location" value=
"CurrentCPU" />
186 <stateAttribute type=
"constant" value=
"Status" />
187 <stateValue type=
"int" value=
"$CPU_STATUS_SOFTIRQ" />
190 <!-- case 5 : softirq_exit : Fields: int32 vec -->
191 <eventHandler eventName=
"softirq_exit">
193 <stateAttribute type=
"location" value=
"CurrentSoftIRQ" />
194 <stateValue type=
"null" />
199 <stateAttribute type=
"location" value=
"CurrentThread" />
200 <stateAttribute type=
"constant" value=
"System_call" />
201 <stateValue type=
"null" />
205 <stateAttribute type=
"location" value=
"CurrentThread" />
206 <stateAttribute type=
"constant" value=
"Status" />
207 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
210 <stateAttribute type=
"location" value=
"CurrentThread" />
211 <stateAttribute type=
"constant" value=
"Status" />
212 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
218 <stateAttribute type=
"location" value=
"CurrentThread" />
219 <stateAttribute type=
"constant" value=
"System_call" />
220 <stateValue type=
"null" />
224 <stateAttribute type=
"location" value=
"CurrentCPU" />
225 <stateAttribute type=
"constant" value=
"Status" />
226 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
229 <stateAttribute type=
"location" value=
"CurrentCPU" />
230 <stateAttribute type=
"constant" value=
"Status" />
231 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
237 <stateAttribute type=
"location" value=
"CurrentCPU" />
238 <stateAttribute type=
"constant" value=
"Current_thread" />
239 <stateValue type=
"null" />
243 <stateAttribute type=
"location" value=
"CurrentCPU" />
244 <stateAttribute type=
"constant" value=
"Status" />
245 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
251 <stateAttribute type=
"location" value=
"CurrentCPU" />
252 <stateAttribute type=
"constant" value=
"Current_thread" />
253 <stateValue type=
"int" value=
"0" />
257 <stateAttribute type=
"location" value=
"CurrentCPU" />
258 <stateAttribute type=
"constant" value=
"Status" />
259 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
263 <!-- case 6 : softirq_raise : Fields: int32 vec -->
264 <eventHandler eventName=
"softirq_raise">
266 <stateAttribute type=
"location" value=
"CurrentSoftIRQ" />
267 <stateValue type=
"int" value=
"$SOFT_IRQ_RAISED" />
270 <!-- case 7 : sched_switch : Fields: string prev_comm, int32 prev_tid,
271 int32 prev_prio, int64 prev_state, string next_comm, int32 next_tid, int32
273 <eventHandler eventName=
"sched_switch">
277 <field name=
"prev_state" />
278 <stateValue type=
"long" value=
"0" />
282 <stateAttribute type=
"constant" value=
"Threads" />
283 <stateAttribute type=
"eventField" value=
"prev_tid" />
284 <stateAttribute type=
"constant" value=
"Status" />
285 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_FOR_CPU" />
288 <stateAttribute type=
"constant" value=
"Threads" />
289 <stateAttribute type=
"eventField" value=
"prev_tid" />
290 <stateAttribute type=
"constant" value=
"Status" />
291 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_BLOCKED" />
297 <stateAttribute type=
"location" value=
"newCurrentThread" />
298 <stateAttribute type=
"constant" value=
"System_call" />
299 <stateValue type=
"null" />
303 <stateAttribute type=
"location" value=
"newCurrentThread" />
304 <stateAttribute type=
"constant" value=
"Status" />
305 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
308 <stateAttribute type=
"location" value=
"newCurrentThread" />
309 <stateAttribute type=
"constant" value=
"Status" />
310 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
314 <stateAttribute type=
"location" value=
"newCurrentThread" />
315 <stateAttribute type=
"constant" value=
"Exec_name" />
316 <stateValue type=
"eventField" value=
"next_comm" />
319 <stateAttribute type=
"location" value=
"CurrentCPU" />
320 <stateAttribute type=
"constant" value=
"Current_thread" />
321 <stateValue type=
"eventField" value=
"next_tid" forcedType=
"int" />
327 <field name=
"next_tid" />
328 <stateValue type=
"long" value=
"0" />
335 <stateAttribute type=
"location" value=
"newCurrentThread" />
336 <stateAttribute type=
"constant" value=
"System_call" />
337 <stateValue type=
"null" />
341 <stateAttribute type=
"location" value=
"CurrentCPU" />
342 <stateAttribute type=
"constant" value=
"Status" />
343 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
346 <stateAttribute type=
"location" value=
"CurrentCPU" />
347 <stateAttribute type=
"constant" value=
"Status" />
348 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
355 <field name=
"next_tid" />
356 <stateValue type=
"long" value=
"0" />
360 <stateAttribute type=
"location" value=
"CurrentCPU" />
361 <stateAttribute type=
"constant" value=
"Status" />
362 <stateValue type=
"int" value=
"$CPU_STATUS_IDLE" />
366 <!-- case 8 : sched_process_fork : Fields: string parent_comm, int32 parent_tid,
367 string child_comm, int32 child_tid -->
368 <eventHandler eventName=
"sched_process_fork">
370 <stateAttribute type=
"constant" value=
"Threads" />
371 <stateAttribute type=
"eventField" value=
"child_tid" />
372 <stateAttribute type=
"constant" value=
"PPID" />
373 <stateValue type=
"eventField" value=
"parent_tid" forcedType=
"int" />
376 <stateAttribute type=
"constant" value=
"Threads" />
377 <stateAttribute type=
"eventField" value=
"child_tid" />
378 <stateAttribute type=
"constant" value=
"Exec_name" />
379 <stateValue type=
"eventField" value=
"child_comm" />
382 <stateAttribute type=
"constant" value=
"Threads" />
383 <stateAttribute type=
"eventField" value=
"child_tid" />
384 <stateAttribute type=
"constant" value=
"Status" />
385 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_FOR_CPU" />
388 <stateAttribute type=
"constant" value=
"Threads" />
389 <stateAttribute type=
"eventField" value=
"child_tid" />
390 <stateAttribute type=
"constant" value=
"System_call" />
391 <stateValue type=
"query">
392 <stateAttribute type=
"constant" value=
"Threads" />
393 <stateAttribute type=
"eventField" value=
"parent_tid" />
394 <stateAttribute type=
"constant" value=
"System_call" />
400 <stateAttribute type=
"constant" value=
"Threads" />
401 <stateAttribute type=
"eventField" value=
"child_tid" />
402 <stateAttribute type=
"constant" value=
"System_call" />
403 <stateValue type=
"null" />
407 <stateAttribute type=
"constant" value=
"Threads" />
408 <stateAttribute type=
"eventField" value=
"child_tid" />
409 <stateAttribute type=
"constant" value=
"System_call" />
410 <stateValue type=
"string" value=
"sys_clone" />
414 <!-- case 10 : sched_process_free : Fields: string parent_comm, int32 parent_tid,
415 string child_comm, int32 child_tid -->
416 <eventHandler eventName=
"sched_process_free">
418 <stateAttribute type=
"constant" value=
"Threads" />
419 <stateAttribute type=
"eventField" value=
"tid" />
420 <stateValue type=
"delete" />
423 <!-- case 11 : lttng_statedump_process_state : Fields: int32 type, int32
424 mode, int32 pid, int32 submode, int32 vpid, int32 ppid, int32 tid, string
425 name, int32 status, int32 vtid -->
426 <eventHandler eventName=
"lttng_statedump_process_state">
430 <stateAttribute type=
"constant" value=
"Threads" />
431 <stateAttribute type=
"eventField" value=
"tid" />
432 <stateAttribute type=
"constant" value=
"Exec_name" />
433 <stateValue type=
"null" />
437 <stateAttribute type=
"constant" value=
"Threads" />
438 <stateAttribute type=
"eventField" value=
"tid" />
439 <stateAttribute type=
"constant" value=
"Exec_name" />
440 <stateValue type=
"eventField" value=
"name" />
446 <stateAttribute type=
"constant" value=
"Threads" />
447 <stateAttribute type=
"eventField" value=
"tid" />
448 <stateAttribute type=
"constant" value=
"PPID" />
449 <stateValue type=
"null" />
453 <stateAttribute type=
"constant" value=
"Threads" />
454 <stateAttribute type=
"eventField" value=
"tid" />
455 <stateAttribute type=
"constant" value=
"PPID" />
456 <stateValue type=
"eventField" value=
"ppid" forcedType=
"int" />
463 <stateAttribute type=
"constant" value=
"Threads" />
464 <stateAttribute type=
"eventField" value=
"tid" />
465 <stateAttribute type=
"constant" value=
"Status" />
466 <stateValue type=
"null" />
469 <field name=
"status" />
470 <stateValue type=
"long" value=
"2" />
475 <stateAttribute type=
"constant" value=
"Threads" />
476 <stateAttribute type=
"eventField" value=
"tid" />
477 <stateAttribute type=
"constant" value=
"Status" />
478 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_FOR_CPU" />
485 <stateAttribute type=
"constant" value=
"Threads" />
486 <stateAttribute type=
"eventField" value=
"tid" />
487 <stateAttribute type=
"constant" value=
"Status" />
488 <stateValue type=
"null" />
491 <field name=
"status" />
492 <stateValue type=
"long" value=
"5" />
497 <stateAttribute type=
"constant" value=
"Threads" />
498 <stateAttribute type=
"eventField" value=
"tid" />
499 <stateAttribute type=
"constant" value=
"Status" />
500 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_BLOCKED" />
506 <stateAttribute type=
"constant" value=
"Threads" />
507 <stateAttribute type=
"eventField" value=
"tid" />
508 <stateAttribute type=
"constant" value=
"Status" />
509 <stateValue type=
"null" />
513 <stateAttribute type=
"constant" value=
"Threads" />
514 <stateAttribute type=
"eventField" value=
"tid" />
515 <stateAttribute type=
"constant" value=
"Status" />
516 <stateValue type=
"int" value=
"$PROCESS_STATUS_UNKNOWN" />
520 <!-- case 12 : sched_wakeup : case 13 : sched_wakeup_new : Fields (same
521 fields for both types): string comm, int32 tid, int32 prio, int32 success,
523 <eventHandler eventName=
"sched_wakeup*">
529 <stateAttribute type=
"constant" value=
"Threads" />
530 <stateAttribute type=
"eventField" value=
"tid" />
531 <stateAttribute type=
"constant" value=
"Status" />
532 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
537 <stateAttribute type=
"constant" value=
"Threads" />
538 <stateAttribute type=
"eventField" value=
"tid" />
539 <stateAttribute type=
"constant" value=
"Status" />
540 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
546 <stateAttribute type=
"constant" value=
"Threads" />
547 <stateAttribute type=
"eventField" value=
"tid" />
548 <stateAttribute type=
"constant" value=
"Status" />
549 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_FOR_CPU" />
553 <!-- delfault : syscall -->
554 <eventHandler eventName=
"sys_*">
556 <stateAttribute type=
"location" value=
"CurrentThread" />
557 <stateAttribute type=
"constant" value=
"System_call" />
558 <stateValue type=
"eventName" />
561 <stateAttribute type=
"location" value=
"CurrentThread" />
562 <stateAttribute type=
"constant" value=
"Status" />
563 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
566 <stateAttribute type=
"location" value=
"CurrentCPU" />
567 <stateAttribute type=
"constant" value=
"Status" />
568 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
571 <!-- delfault : compat_syscall -->
572 <eventHandler eventName=
"compat_sys_*">
574 <stateAttribute type=
"location" value=
"CurrentThread" />
575 <stateAttribute type=
"constant" value=
"System_call" />
576 <stateValue type=
"eventName" />
579 <stateAttribute type=
"location" value=
"CurrentThread" />
580 <stateAttribute type=
"constant" value=
"Status" />
581 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
584 <stateAttribute type=
"location" value=
"CurrentCPU" />
585 <stateAttribute type=
"constant" value=
"Status" />
586 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
This page took 0.04717 seconds and 6 git commands to generate.