1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- ***************************************************************************
3 * Copyright (c) 2014 É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 * Naser Ezzati - 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=
"Test Condition Operators" />
23 <definedValue name=
"PROCESS_STATUS_UNKNOWN" value=
"0" />
24 <definedValue name=
"PROCESS_STATUS_WAIT_BLOCKED" value=
"1" />
25 <definedValue name=
"PROCESS_STATUS_RUN_USERMODE" value=
"2" />
26 <definedValue name=
"PROCESS_STATUS_RUN_SYSCALL" value=
"3" />
27 <definedValue name=
"PROCESS_STATUS_INTERRUPTED" value=
"5000" />
28 <definedValue name=
"PROCESS_STATUS_WAIT_FOR_CPU" value=
"10" />
30 <location id=
"CurrentThread">
31 <stateAttribute type=
"constant" value=
"Threads" />
32 <stateAttribute type=
"eventField" value=
"next_tid" />
35 <eventHandler eventName=
"sched_switch">
38 <condition operator=
"ne"> <!-- operator can also be "eq", "ge", "gt", "le", "lt" -->
39 <field name=
"prev_state" />
40 <stateValue type=
"long" value=
"0" />
44 <stateAttribute type=
"constant" value=
"Threads" />
45 <stateAttribute type=
"eventField" value=
"prev_tid" />
46 <stateAttribute type=
"constant" value=
"Status" />
47 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_BLOCKED" />
50 <stateAttribute type=
"constant" value=
"Threads" />
51 <stateAttribute type=
"eventField" value=
"prev_tid" />
52 <stateAttribute type=
"constant" value=
"Status" />
53 <stateValue type=
"int" value=
"$PROCESS_STATUS_WAIT_FOR_CPU" />
59 <condition operator=
"gt">
60 <field name=
"next_tid" />
61 <stateValue type=
"long" value=
"0" />
66 <condition> <!-- when the operation attribute is not set it is considered as "eq" (equal) -->
67 <stateAttribute type=
"location" value=
"newCurrentThread" />
68 <stateAttribute type=
"constant" value=
"System_call" />
69 <stateValue type=
"null" />
73 <stateAttribute type=
"location" value=
"CurrentCPU" />
74 <stateAttribute type=
"constant" value=
"Status" />
75 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_USERMODE" />
78 <stateAttribute type=
"location" value=
"CurrentCPU" />
79 <stateAttribute type=
"constant" value=
"Status" />
80 <stateValue type=
"int" value=
"$CPU_STATUS_RUN_SYSCALL" />
87 <condition> <!-- when the operation attribute is not set it is considered as "eq" (equal) -->
88 <stateAttribute type=
"location" value=
"CurrentThread" />
89 <stateAttribute type=
"constant" value=
"System_call" />
90 <stateValue type=
"null" />
94 <stateAttribute type=
"location" value=
"CurrentThread" />
95 <stateAttribute type=
"constant" value=
"Status" />
96 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
99 <stateAttribute type=
"location" value=
"CurrentThread" />
100 <stateAttribute type=
"constant" value=
"Status" />
101 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
105 <eventHandler eventName=
"irq_handler_exit">
107 <stateAttribute type=
"location" value=
"CurrentIRQ" />
108 <stateValue type=
"null" />
112 <condition operator=
"eq">
113 <stateAttribute type=
"location" value=
"CurrentThread" />
114 <stateAttribute type=
"constant" value=
"System_call" />
115 <stateValue type=
"null" />
119 <stateAttribute type=
"location" value=
"CurrentThread" />
120 <stateAttribute type=
"constant" value=
"Status" />
121 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_USERMODE" />
124 <stateAttribute type=
"location" value=
"CurrentThread" />
125 <stateAttribute type=
"constant" value=
"Status" />
126 <stateValue type=
"int" value=
"$PROCESS_STATUS_RUN_SYSCALL" />
This page took 0.033666 seconds and 5 git commands to generate.