Permalink
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (86 sloc) 3.5 KB
<?xml version="1.0" encoding="UTF-8"?>
<!-- ***************************************************************************
* Copyright (c) 2014 É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 v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Francis Giraldeau
*************************************************************************** -->
<tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="stateprovider.xsd">
<timeGraphView id="cpufreq.view.timegraph">
<head>
<analysis id="cpufreq.sp" />
<label value="CPU Frequency" />
</head>
<!-- StateValues -->
<definedValue name="CSTATE_0" value="800000" color="#fcb8b8" />
<definedValue name="CSTATE_1" value="1000000" color="#fca8a8" />
<definedValue name="CSTATE_2" value="1200000" color="#fc8888" />
<definedValue name="CSTATE_3" value="1400000" color="#fc8484" />
<definedValue name="CSTATE_4" value="1500000" color="#fc6060" />
<definedValue name="CSTATE_5" value="1700000" color="#fc4c4c" />
<definedValue name="CSTATE_6" value="1900000" color="#fc3838" />
<definedValue name="CSTATE_7" value="2100000" color="#fc2828" />
<definedValue name="CSTATE_8" value="2300000" color="#fc1818" />
<definedValue name="CSTATE_9" value="2500000" color="#fc0404" />
<definedValue name="CSTATE_10" value="2700000" color="#d40000" />
<definedValue name="CSTATE_11" value="2800000" color="#dc0000" />
<definedValue name="CSTATE_12" value="3000000" color="#c40000" />
<definedValue name="CSTATE_13" value="3200000" color="#c00000" />
<definedValue name="CSTATE_14" value="3401000" color="#a00000" />
<definedValue name="CPU_IDLE" value="0" color="#ccf4cc" />
<definedValue name="CPU_BUSY" value="1" color="#006600" />
<entry path="CPU/*">
<display type="self" />
<entry path="freq">
<display type="self" />
</entry>
<entry path="sched">
<display type="self" />
</entry>
</entry>
</timeGraphView>
<stateProvider id="cpufreq.sp" version="4">
<head>
<traceType id="org.eclipse.linuxtools.lttng2.kernel.tracetype" />
<label value="CPU Frequency" />
</head>
<definedValue name="CPU_IDLE" value="0" />
<definedValue name="CPU_BUSY" value="1" />
<eventHandler eventName="power_cpu_frequency">
<stateChange>
<stateAttribute type="constant" value="CPU" />
<stateAttribute type="eventField" value="cpu" />
<stateAttribute type="constant" value="freq" />
<stateValue type="eventField" value="state" forcedType="int" />
</stateChange>
</eventHandler>
<eventHandler eventName="sched_switch">
<stateChange>
<if>
<condition>
<field name="next_tid" />
<stateValue type="long" value="0" />
</condition>
</if>
<then>
<stateAttribute type="constant" value="CPU" />
<stateAttribute type="eventField" value="cpu" />
<stateAttribute type="constant" value="sched" />
<stateValue type="int" value="$CPU_IDLE" />
</then>
<else>
<stateAttribute type="constant" value="CPU" />
<stateAttribute type="eventField" value="cpu" />
<stateAttribute type="constant" value="sched" />
<stateValue type="int" value="$CPU_BUSY" />
</else>
</stateChange>
</eventHandler>
</stateProvider>
</tmfxml>