aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan C. Ward <bcw@cs.unc.edu>2013-04-18 16:16:23 -0400
committerroot <root@ubuntu-qemu.(none)>2013-04-18 16:18:12 -0400
commit2d863ab102ddec8cd0bc6c2103ba0da5db40d387 (patch)
tree6bb8e9327129fbd71057b825588794dbb44d5ec6
parent4503e19601635059d2e4e8f7651f9b4b168a6e7a (diff)
Minor modifications to run/experiment.pywip-nested-locking
-rw-r--r--config/config.py2
-rw-r--r--run/experiment.py9
2 files changed, 7 insertions, 4 deletions
diff --git a/config/config.py b/config/config.py
index eed3648..7b6abc2 100644
--- a/config/config.py
+++ b/config/config.py
@@ -48,6 +48,6 @@ SCHED_EVENTS = range(501, 513)
48OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK'] 48OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK']
49OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in 49OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in
50 itertools.product(OVH_BASE_EVENTS, ["START","END"])] 50 itertools.product(OVH_BASE_EVENTS, ["START","END"])]
51OVH_ALL_EVENTS += ['RELEASE_LATENCY'] 51OVH_ALL_EVENTS += ['RELEASE_LATENCY', 'LOCK_SUSPEND', 'LOCK_RESUME']
52# This event doesn't have a START and END 52# This event doesn't have a START and END
53OVH_BASE_EVENTS += ['RELEASE_LATENCY'] 53OVH_BASE_EVENTS += ['RELEASE_LATENCY']
diff --git a/run/experiment.py b/run/experiment.py
index ff0e9f3..7a973f6 100644
--- a/run/experiment.py
+++ b/run/experiment.py
@@ -157,6 +157,7 @@ class Experiment(object):
157 succ = False 157 succ = False
158 try: 158 try:
159 self.__setup() 159 self.__setup()
160 time.sleep(1)
160 161
161 try: 162 try:
162 self.__run_tasks() 163 self.__run_tasks()
@@ -196,13 +197,15 @@ class Experiment(object):
196 def __setup(self): 197 def __setup(self):
197 self.log("Writing %d proc entries" % len(self.proc_entries)) 198 self.log("Writing %d proc entries" % len(self.proc_entries))
198 map(methodcaller('write_proc'), self.proc_entries) 199 map(methodcaller('write_proc'), self.proc_entries)
200
201 self.log("Starting %d regular tracers" % len(self.regular_tracers))
202 map(methodcaller('start_tracing'), self.regular_tracers)
203
204 time.sleep(1)
199 205
200 self.log("Switching to %s" % self.scheduler) 206 self.log("Switching to %s" % self.scheduler)
201 lu.switch_scheduler(self.scheduler) 207 lu.switch_scheduler(self.scheduler)
202 208
203 self.log("Starting %d regular tracers" % len(self.regular_tracers))
204 map(methodcaller('start_tracing'), self.regular_tracers)
205
206 self.exec_out = open('%s/exec-out.txt' % self.working_dir, 'w') 209 self.exec_out = open('%s/exec-out.txt' % self.working_dir, 'w')
207 self.exec_err = open('%s/exec-err.txt' % self.working_dir, 'w') 210 self.exec_err = open('%s/exec-err.txt' % self.working_dir, 'w')
208 def set_out(executable): 211 def set_out(executable):