[PATCH v4] rteval: run cyclictest using '--default-system' when setting idle states

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When running cyclictest in rteval, cyclictest automatically disables
idle states. This means whenever the user sets the idle state of a cpu
list using '--idle-set' it is overridden by cyclictest.

To fix this, the variable 'usingCpupower' is appended to the parameter
dictionary that's passed to the Cyclictest measurement object which executes
cyclictest in rteval.

If '--idle-set' is specified when running rteval,
'usingCpupower' is set to true and the '--default-system' option is
appended to the cyclictest command, which will prevent cyclictest from
disabling cstates.

Signed-off-by: Anubhav Shelat <ashelat@xxxxxxxxxx>
---
 rteval/__init__.py                       | 3 ++-
 rteval/modules/measurement/cyclictest.py | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/rteval/__init__.py b/rteval/__init__.py
index 226d14f80f48..b042102f4553 100644
--- a/rteval/__init__.py
+++ b/rteval/__init__.py
@@ -124,7 +124,8 @@ class RtEval(rtevalReport):
                       'memsize':self._sysinfo.mem_get_size(),
                       'numanodes':self._sysinfo.mem_get_numa_nodes(),
                       'duration': float(self.__rtevcfg.duration),
-                      }
+                      'usingCpupower': self.__rtevcfg.usingCpupower
+                  }
             self._loadmods.Setup(params)
 
         self.__logger.log(Log.INFO, "Preparing measurement modules")
diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py
index a9f5b0c4fba7..fffc8fe27681 100644
--- a/rteval/modules/measurement/cyclictest.py
+++ b/rteval/modules/measurement/cyclictest.py
@@ -251,6 +251,9 @@ class Cyclictest(rtevalModulePrototype):
         self.__cmd.append(f'-t{self.__numcores}')
         self.__cmd.append(f'-a{self.__cpulist}')
 
+        if (self.__cfg.usingCpupower):
+            self.__cmd.append('--default-system')
+
         if 'threads' in self.__cfg and self.__cfg.threads:
             self.__cmd.append(f"-t{int(self.__cfg.threads)}")
 
-- 
2.45.2





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux