From: John Kacur <jkacur@redhat.com>
To: RT <linux-rt-users@vger.kernel.org>
Cc: Clark Williams <williams@redhat.com>,
Daniel Bristot de Oliveria <bristot@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>,
Kate Carcia Poulin <kcarcia@redhat.com>,
John Kacur <jkacur@redhat.com>
Subject: [PATCH 1/4] rteval: cyclictest.py: Fix the description in the xml report
Date: Thu, 25 Apr 2024 14:07:20 -0400 [thread overview]
Message-ID: <20240425180723.66499-1-jkacur@redhat.com> (raw)
If the __type is 'system' we should add the description to the xml
The output should be something like this
<system description="(12 cores) Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz">
Before this fix it was
<system description="">
Signed-off-by: John Kacur <jkacur@redhat.com>
---
rteval/modules/measurement/cyclictest.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py
index 671426e13c4d..48b86a03cbfc 100644
--- a/rteval/modules/measurement/cyclictest.py
+++ b/rteval/modules/measurement/cyclictest.py
@@ -25,7 +25,7 @@ class RunData:
self.__id = coreid
self.__type = datatype
self.__priority = int(priority)
- self.__description = ''
+ self.description = ''
# histogram of data
self.__samples = {}
self.__numsamples = 0
@@ -130,7 +130,7 @@ class RunData:
def MakeReport(self):
rep_n = libxml2.newNode(self.__type)
if self.__type == 'system':
- rep_n.newProp('description', self.__description)
+ rep_n.newProp('description', self.description)
else:
rep_n.newProp('id', str(self.__id))
rep_n.newProp('priority', str(self.__priority))
--
2.44.0
next reply other threads:[~2024-04-25 18:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 18:07 John Kacur [this message]
2024-04-25 18:07 ` [PATCH 2/4] rteval: cyclictest.py: Remove unused method sample John Kacur
2024-04-25 18:07 ` [PATCH 3/4] rteval: cyclictest.py: Fix the median calculation John Kacur
2024-04-25 18:07 ` [PATCH 4/4] rteval: timerlat.py Add statistics and generate xml John Kacur
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=20240425180723.66499-1-jkacur@redhat.com \
--to=jkacur@redhat.com \
--cc=bristot@redhat.com \
--cc=juri.lelli@redhat.com \
--cc=kcarcia@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=williams@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).