public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: John Kacur <jkacur@redhat.com>
To: Tomas Glozar <tglozar@redhat.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: [PATCH] rteval: Add tuned state to rteval text report
Date: Wed, 7 Aug 2024 11:05:33 -0400 (EDT)	[thread overview]
Message-ID: <ce2060af-07c9-ddef-3cea-1a12bb6d228e@redhat.com> (raw)
In-Reply-To: <20240807063333.258868-1-tglozar@redhat.com>



On Wed, 7 Aug 2024, tglozar@redhat.com wrote:

> From: Tomas Glozar <tglozar@redhat.com>
> 
> 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 <tglozar@redhat.com>
> ---
>  rteval/rteval_text.xsl | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/rteval/rteval_text.xsl b/rteval/rteval_text.xsl
> index 96846aa..70f3e0f 100644
> --- a/rteval/rteval_text.xsl
> +++ b/rteval/rteval_text.xsl
> @@ -143,6 +143,22 @@
>        </xsl:when>
>        <xsl:otherwise>(unknown)</xsl:otherwise>
>      </xsl:choose>
> +    <xsl:text>&#10;</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>&#10;&#10;</xsl:text>
>     
>      <xsl:text>   System load:&#10;</xsl:text>
> -- 

Signed-off-by: John Kacur <jkacur@redhat.com>


      reply	other threads:[~2024-08-07 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07  6:33 [PATCH] rteval: Add tuned state to rteval text report tglozar
2024-08-07 15:05 ` John Kacur [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ce2060af-07c9-ddef-3cea-1a12bb6d228e@redhat.com \
    --to=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=tglozar@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox