rteval: Add tuned state to rteval text report
PATCH 1/1 rteval: Add tuned state to rteval text report
From: Tomas Glozar <[email protected]>
Add a section "Tuned state" to the text report generated by rteval. Show tuned active state if tuned is present, otherwise, show a message that tuned is not present. If the active state is known, show also the verification result.
Signed-off-by Tomas Glozar <[email protected]>
--- rteval/rteval_text.xsl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
rteval/rteval_text.xsl +16 -0
@@ -143,6 +143,22 @@ </xsl:when> <xsl:otherwise>(unknown)</xsl:otherwise> </xsl:choose> + <xsl:text> </xsl:text> + + <xsl:text> Tuned state: </xsl:text> + <xsl:choose> + <xsl:when test="SystemInfo/Tuned/@present='1'"> + <xsl:value-of select="SystemInfo/Tuned/active_profile"/> + <xsl:text> profile</xsl:text> + <xsl:if test="SystemInfo/Tuned/active_profile != 'unknown'"> + <xsl:text>, verification: </xsl:text> + <xsl:value-of select="SystemInfo/Tuned/verified"/> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:text>not present</xsl:text> + </xsl:otherwise> + </xsl:choose> <xsl:text> </xsl:text> <xsl:text> System load: </xsl:text>
Signature · 1 line
2.45.2
Quoted 30 lines · On Wed, 7 Aug 2024, [email protected] wrote:
From: Tomas Glozar <[email protected]>
Add a section "Tuned state" to the text report generated by rteval. Show tuned active state if tuned is present, otherwise, show a message that tuned is not present. If the active state is known, show also the verification result.
Signed-off-by Tomas Glozar <[email protected]>--- rteval/rteval_text.xsl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)rteval/rteval_text.xsl +9
-0@@ -143,6 +143,22 @@ </xsl:when> <xsl:otherwise>(unknown)</xsl:otherwise> </xsl:choose> + <xsl:text> </xsl:text> + + <xsl:text> Tuned state: </xsl:text> + <xsl:choose> + <xsl:when test="SystemInfo/Tuned/@present='1'"> + <xsl:value-of select="SystemInfo/Tuned/active_profile"/> + <xsl:text> profile</xsl:text> + <xsl:if test="SystemInfo/Tuned/active_profile != 'unknown'"> + <xsl:text>, verification: </xsl:text>
rteval/rteval_text.xsl line 164
Quoted 10 lines
rteval/rteval_text.xsl +7
-0+ <xsl:value-of select="SystemInfo/Tuned/verified"/> + </xsl:if> + </xsl:when> + <xsl:otherwise> + <xsl:text>not present</xsl:text> + </xsl:otherwise> + </xsl:choose> <xsl:text> </xsl:text> <xsl:text> System load: </xsl:text>
Signed-off-by John Kacur <[email protected]>