blob: 9aadcc3c7d35711e6748d39eaa41f0a861e0bdf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
<!-- -->
<!-- Main report framework -->
<!-- -->
<xsl:template match="/rteval">
<!-- Heading -->
<xsl:text>core	index	value </xsl:text>
<!-- Extract overall system histogram data -->
<xsl:apply-templates select="Measurements/Profile/cyclictest/system/histogram/bucket">
<xsl:with-param name="label" select="'system'"/>
<xsl:sort select="Measurements/Profile/cyclictest/core/histogram/bucket/@index" data-type="number"/>
</xsl:apply-templates>
<!-- Extract per cpu core histogram data -->
<xsl:apply-templates select="Measurements/Profile/cyclictest/core/histogram/bucket">
<xsl:sort select="Measurements/Profile/cyclictest/core/@id" data-type="number"/>
<xsl:sort select="Measurements/Profile/cyclictest/core/histogram/bucket/@index" data-type="number"/>
</xsl:apply-templates>
</xsl:template>
<!-- -->
<!-- End of main report framework -->
<!-- -->
<!-- Record formatting -->
<xsl:template match="/rteval/Measurements/Profile/cyclictest/*/histogram/bucket">
<xsl:param name="label"/>
<xsl:choose>
<!-- If we don't have a id tag in what should be a 'core' tag, use the given label -->
<xsl:when test="../../@id"><xsl:value-of select="../../@id"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$label"/></xsl:otherwise>
</xsl:choose>
<xsl:text>	</xsl:text>
<xsl:value-of select="@index"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="@value"/>
<xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
|