blob: 9367043b542e436447176d812e6eed1780dedebf [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- ***************************************************************************
* Copyright (c) 2018 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*************************************************************************** -->
<tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="xmlDefinition.xsd">
<timeGraphView id="test.xml.experiment.timegraph">
<head>
<analysis id="test.xml.experiment.stateprovider" />
<label value="Test XML Experiment view" />
</head>
<!-- Test string value for colors for this analysis -->
<definedValue name="Good" value="GOOD" color="#118811" />
<definedValue name="Bad" value="BAD" color="#DDDD00" />
<entry path="update/*">
<display type="self" />
</entry>
</timeGraphView>
<stateProvider id="test.xml.experiment.stateprovider" version="1">
<head>
<traceType id="org.eclipse.linuxtools.tmf.core.experiment.generic" />
<label value="Xml Analysis for experiments only" />
</head>
<mappingGroup id="operation">
<entry>
<stateValue type="string" value="read only" />
<stateValue type="string" value="op1" />
</entry>
</mappingGroup>
<!-- Test to see that state values are updated or modified depending on the requested state change -->
<eventHandler eventName="entry">
<stateChange>
<stateAttribute type="constant" value="update" />
<stateAttribute type="eventField" value="cpu" />
<stateValue type="string" value="UNKNOWN" />
</stateChange>
</eventHandler>
<eventHandler eventName="exit">
<stateChange>
<stateAttribute type="constant" value="update" />
<stateAttribute type="eventField" value="cpu" />
<stateValue type="eventField" value="curState" update="true" />
</stateChange>
</eventHandler>
</stateProvider>
</tmfxml>