summaryrefslogtreecommitdiffstats
path: root/rteval/rteval.py
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2012-12-13 09:39:31 -0600
committerClark Williams <williams@redhat.com>2012-12-13 09:39:31 -0600
commitdc6e65517690aade2f1799e816e82b78d902fca3 (patch)
treedd29ebcb90696b89453c52bdc68ff3e45dd79702 /rteval/rteval.py
parent2bdb51986aacd5c42bd74719e178eaaa71697d86 (diff)
downloadrteval-dc6e65517690aade2f1799e816e82b78d902fca3.tar.gz
rteval-dc6e65517690aade2f1799e816e82b78d902fca3.tar.xz
rteval-dc6e65517690aade2f1799e816e82b78d902fca3.zip
add module-specific command line options
Add command line options: --cyclictest-priority --cyclictest-distance --cyclictest-interval --cyclictest-buckets --hackbench-jobspercore --kcompile-jobspercore These options allow setting module specific behavior for a run. Updated the rteval.8 man page to reflect this and the rteval.conf file as well. Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'rteval/rteval.py')
-rw-r--r--rteval/rteval.py43
1 files changed, 41 insertions, 2 deletions
diff --git a/rteval/rteval.py b/rteval/rteval.py
index 5843d78..a8954a0 100644
--- a/rteval/rteval.py
+++ b/rteval/rteval.py
@@ -124,7 +124,7 @@ class RtEval(object):
'hackbench' : 'module',
},
'kcompile' : {
- 'source' : 'linux-2.6.21.tar.bz2',
+ 'source' : 'linux-2.6.39.tar.bz2',
'jobspercore': '2',
},
'hackbench' : {
@@ -150,6 +150,24 @@ class RtEval(object):
# (cmd line overrides config file values)
self.config.AppendConfig('rteval', self.cmd_options)
+ if self.cmd_options.cyclictest_interval != None:
+ self.config.AppendConfig('cyclictest', { "interval":self.cmd_options.cyclictest_interval })
+
+ if self.cmd_options.cyclictest_distance != None:
+ self.config.AppendConfig('cyclictest', { "distance":self.cmd_options.cyclictest_distance })
+
+ if self.cmd_options.cyclictest_buckets != None:
+ self.config.AppendConfig('cyclictest', { "buckets":self.cmd_options.cyclictest_distance })
+
+ if self.cmd_options.cyclictest_priority != None:
+ self.config.AppendConfig('cyclictest', { "priority":self.cmd_options.cyclictest_priority })
+
+ if self.cmd_options.hackbench_jobspercore != None:
+ self.config.AppendConfig('hackbench', { "jobspercore":self.cmd_options.hackbench_jobspercore })
+
+ if self.cmd_options.kcompile_jobspercore != None:
+ self.config.AppendConfig('kcompile', { "jobspercore":self.cmd_options.kcompile_jobspercore })
+
self.debug("workdir: %s" % self.workdir)
# prepare a mailer, if that's configured
@@ -386,11 +404,32 @@ class RtEval(object):
parser.add_option("-L", "--logging", dest="logging",
action='store_true', default=False,
help='log the output of the loads in the report directory')
-
parser.add_option("-O", "--onlyload", dest="onlyload",
action='store_true', default=False,
help="only run the loads (don't run measurement threads)")
+ # module options
+ parser.add_option("", "--cyclictest-interval", dest="cyclictest_interval",
+ action="store", type="int",
+ help="cyclictest measurement interval in microseconds")
+ parser.add_option("", "--cyclictest-distance", dest="cyclictest_distance",
+ action="store", type="int",
+ help="cyclictest measurement interval increment in microseconds")
+ parser.add_option("", "--cyclictest-buckets", dest="cyclictest_buckets",
+ action="store", type="int",
+ help="number of cyclictest 1 microsecond histogram buckets")
+ parser.add_option("", "--cyclictest-priority", dest="cyclictest_priority",
+ action="store", type="int",
+ help="SCHED_FIFO priority of measurement threads")
+
+ parser.add_option("", "--hackbench-jobspercore", dest="hackbench_jobspercore",
+ action="store", type="int",
+ help="number of hackbench jobs per-core")
+ parser.add_option("", "--kcompile-jobspercore", dest="kcompile_jobspercore",
+ action="store", type="int",
+ help="number of kernel compile jobs per-core")
+
+
(self.cmd_options, self.cmd_arguments) = parser.parse_args(args = cmdargs)
if self.cmd_options.duration:
mult = 1.0