[PATCH 5/7] rteval: Display core sharing warnings in text report

John Kacur
2026-04-21T18:26:44Z

Add XSLT template to display CoreSharingWarnings in the text report
generated with the -Z option. The warnings appear after the "Tuned state"
section and before "System load" in the report output.

The template conditionally displays the "Core Sharing Warnings:" section
only when warnings are present in the XML, keeping the report clean when
there are no core sharing issues detected.

Example output:
Core Sharing Warnings:
Warning: Housekeeping CPU 0 (isol) shares core with measurement CPU 8 (isol)
Warning: Measurement CPU 1 (isol) shares core with load CPU 9 (isol)

This completes the core sharing validation feature by making the warnings
visible in both the XML report and the human-readable text summary.

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
---
rteval/rteval_text.xsl | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/rteval/rteval_text.xsl b/rteval/rteval_text.xsl
index 146302744f58..54dc7d2f9a07 100644
--- a/rteval/rteval_text.xsl
+++ b/rteval/rteval_text.xsl
@@ -160,7 +160,18 @@
</xsl:otherwise>
</xsl:choose>
<xsl:text>&#10;&#10;</xsl:text>
-
+
+
+ <xsl:if test="SystemInfo/CPUtopology/CoreSharingWarnings/warning">
+ <xsl:text> Core Sharing Warnings:&#10;</xsl:text>
+ <xsl:for-each select="SystemInfo/CPUtopology/CoreSharingWarnings/warning">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:for-each>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:if>
+
<xsl:text> System load:&#10;</xsl:text>
<xsl:text> Load average: </xsl:text>
<xsl:value-of select="loads/@load_average"/>
--
2.53.0