1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <tmfxml xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
3 xsi:
noNamespaceSchemaLocation=
"xmlDefinition.xsd">
4 <!-- ***************************************************************************
5 * Copyright (c) 2015 Ericsson
7 * All rights reserved. This program and the accompanying materials are
8 * made available under the terms of the Eclipse Public License v1.0 which
9 * accompanies this distribution, and is available at
10 * http://www.eclipse.org/legal/epl-v10.html
13 * Jean-Christian Kouame - Initial API and implementation
14 *************************************************************************** -->
15 <pattern version=
"0" id=
"xml test pattern segment">
17 <traceType id=
"org.eclipse.linuxtools.lttng2.kernel.tracetype" />
18 <label value=
"xml test pattern segment" />
21 <!-- the pattern handler specifies the FSM that will be instanciated at the beginning of the analysis -->
22 <patternHandler initial=
"test">
27 <!-- Generate two segments -->
28 <action id=
"pattern segment test 1">
29 <!-- Generate a pattern segment with the name 'test1'-->
31 <segType segName=
"test1" />
34 <action id=
"pattern segment test 2">
35 <!-- Generate a pattern segment with the name 'test2' and with three fields 'field1', 'field2' and 'field2'-->
37 <segType segName=
"test2" />
39 <segField name=
"field1" type=
"long" value=
"5"/>
40 <segField name=
"field2" type=
"string" value=
"test"/>
41 <segField name=
"field3" type=
"int" value=
"1"/>
49 Declare a test FSM that that will generate two segments for each event received
51 <fsm id=
"test" multiple=
"false" initial=
"state">
53 <!-- The state will stay here forever-->
54 <transition target=
"state" action=
"pattern segment test 1:pattern segment test 2" />
This page took 0.032416 seconds and 6 git commands to generate.