lttng: Use long values for integer fields in the Graph test trace
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 4 Apr 2016 23:05:13 +0000 (19:05 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 7 Apr 2016 05:06:11 +0000 (01:06 -0400)
Since state providers expect all integer fields to be Long objects
(as ctf.tmf does), test traces should also supply long values.

"cpu" should remain an int however.

Change-Id: Icee091a56710cd4a3c16d4f00ab00ca792b13d1e
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/69866
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.kernel.core.tests/testfiles/graph/sched_only.xml

index a827f5b3ceafeee1e8f7c39de73df63f41b34372..61fce9ebdc95bb132e2a4b25856d70d0ad7a1289 100644 (file)
@@ -6,40 +6,40 @@
 <field name="cpu" value="0" type="int" />
 <field name="prev_comm" value="proc1" type="string" />
 <field name="prev_tid" value="1" type="long" />
-<field name="prev_prio" value="20" type="int" />
+<field name="prev_prio" value="20" type="long" />
 <field name="prev_state" value="0" type="long" />
 <field name="next_comm" value="proc2" type="string" />
 <field name="next_tid" value="2" type="long" />
-<field name="next_prio" value="20" type="int" />
+<field name="next_prio" value="20" type="long" />
 </event>
 <event timestamp="20" name="sched_switch">
 <field name="cpu" value="0" type="int" />
 <field name="prev_comm" value="proc2" type="string" />
 <field name="prev_tid" value="2" type="long" />
-<field name="prev_prio" value="20" type="int" />
+<field name="prev_prio" value="20" type="long" />
 <field name="prev_state" value="3" type="long" />
 <field name="next_comm" value="proc1" type="string" />
 <field name="next_tid" value="1" type="long" />
-<field name="next_prio" value="20" type="int" />
+<field name="next_prio" value="20" type="long" />
 </event>
 <event timestamp="30" name="sched_switch">
 <field name="cpu" value="0" type="int" />
 <field name="prev_comm" value="proc1" type="string" />
 <field name="prev_tid" value="1" type="long" />
-<field name="prev_prio" value="20" type="int" />
+<field name="prev_prio" value="20" type="long" />
 <field name="prev_state" value="0" type="long" />
 <field name="next_comm" value="proc2" type="string" />
 <field name="next_tid" value="2" type="long" />
-<field name="next_prio" value="20" type="int" />
+<field name="next_prio" value="20" type="long" />
 </event>
 <event timestamp="40" name="sched_switch">
 <field name="cpu" value="0" type="int" />
 <field name="prev_comm" value="proc2" type="string" />
 <field name="prev_tid" value="2" type="long" />
-<field name="prev_prio" value="20" type="int" />
+<field name="prev_prio" value="20" type="long" />
 <field name="prev_state" value="0" type="long" />
 <field name="next_comm" value="proc1" type="string" />
 <field name="next_tid" value="1" type="long" />
-<field name="next_prio" value="20" type="int" />
+<field name="next_prio" value="20" type="long" />
 </event>
-</trace>
\ No newline at end of file
+</trace>
This page took 0.02627 seconds and 5 git commands to generate.