46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
|
From 0a431278cc681270b54efea4eebce9571c237624 Mon Sep 17 00:00:00 2001
|
||
|
From: John Kacur <jkacur@redhat.com>
|
||
|
Date: Thu, 18 Apr 2024 12:39:33 -0400
|
||
|
Subject: [PATCH 03/13] rteval: cyclictest.py: Fix the description in the xml
|
||
|
report
|
||
|
|
||
|
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
|
||
|
|