blob: cd6cf528906cc461130286b7201151882ab7317a (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<?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"> ===================================================================
rteval (v<xsl:value-of select="@version"/>) report
-------------------------------------------------------------------
Test run: <xsl:value-of select="run_info/date"/> <xsl:value-of select="run_info/time"/>
Run time: <xsl:value-of select="run_info/@days"/> days <xsl:value-of select="run_info/@hours"/>h <xsl:value-of select="run_info/@minutes"/>m <xsl:value-of select="run_info/@seconds"/>s
Tested node: <xsl:value-of select="uname/node"/>
BIOS version: <xsl:value-of select="HardwareInfo/BIOS"/> (ver: <xsl:value-of select="HardwareInfo/BIOS/@Version"/>, rev :<xsl:value-of select="HardwareInfo/BIOS/@BIOSrevision"/>, release date: <xsl:value-of select="HardwareInfo/BIOS/@ReleaseDate"/>)
CPU cores: <xsl:value-of select="hardware/cpu_cores"/>
Memory: <xsl:value-of select="hardware/memory_size"/> KB
Kernel: <xsl:value-of select="uname/kernel"/> <xsl:if test="uname/kernel/@is_RT = '1'"> (RT enabled)</xsl:if>
Architecture: <xsl:value-of select="uname/arch"/>
Clocksource: <xsl:value-of select="clocksource/current"/>
Available: <xsl:value-of select="clocksource/available"/>
Load commands:
Load average: <xsl:value-of select="loads/@load_average"/>
Commands:<xsl:apply-templates select="loads/command_line"/><xsl:text>
</xsl:text>
<!-- Format other sections of the report, if they are found -->
<!-- To add support for even more sections, just add them into the existing -->
<!-- xsl:apply-tempaltes tag, separated with pipe(|) -->
<!-- -->
<!-- select="cyclictest|new_foo_section|another_section" -->
<!-- -->
<xsl:apply-templates select="cyclictest"/>
===================================================================
</xsl:template>
<!-- -->
<!-- End of main report framework -->
<!-- -->
<!-- Formats and lists all used commands lines -->
<xsl:template match="command_line">
- <xsl:value-of select="@name"/>: <xsl:value-of select="."/>
</xsl:template>
<!-- Format the cyclic test section of the report -->
<xsl:template match="/rteval/cyclictest">
Latency test
Command: <xsl:value-of select="command_line"/>
System: <xsl:value-of select="system/@description"/>
Statistics: <xsl:apply-templates select="system/statistics"/>
<!-- Add CPU core info and stats-->
<xsl:apply-templates select="core">
<xsl:sort select="@id"/>
</xsl:apply-templates>
</xsl:template>
<!-- Format the CPU core section in the cyclict test part -->
<xsl:template match="cyclictest/core">
CPU core <xsl:value-of select="@id"/> Priority: <xsl:value-of select="@priority"/>
Statistics: <xsl:apply-templates select="statistics"/>
</xsl:template>
<!-- Generic formatting of statistics information -->
<xsl:template match="statistics">
Samples: <xsl:value-of select="samples"/>
Mean: <xsl:value-of select="mean"/><xsl:value-of select="mean/@unit"/>
Median: <xsl:value-of select="median"/><xsl:value-of select="median/@unit"/>
Mode: <xsl:value-of select="mode"/><xsl:value-of select="mode/@unit"/>
Range: <xsl:value-of select="range"/><xsl:value-of select="range/@unit"/>
Min: <xsl:value-of select="minimum"/><xsl:value-of select="minimum/@unit"/>
Max: <xsl:value-of select="maximum"/><xsl:value-of select="maximum/@unit"/>
Mean Absolute Dev: <xsl:value-of select="mean_absolute_deviation"/><xsl:value-of select="mean_absolute_deviation/@unit"/>
Variance: <xsl:value-of select="variance"/><xsl:value-of select="variance/@unit"/>
Std.dev: <xsl:value-of select="standard_deviation"/><xsl:value-of select="standard_deviation/@unit"/>
</xsl:template>
</xsl:stylesheet>
|