diff options
| -rw-r--r-- | config/config.py | 2 | ||||
| -rw-r--r-- | run/experiment.py | 9 |
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) | |||
| 48 | OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK'] | 48 | OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK'] |
| 49 | OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in | 49 | OVH_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"])] |
| 51 | OVH_ALL_EVENTS += ['RELEASE_LATENCY'] | 51 | OVH_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 |
| 53 | OVH_BASE_EVENTS += ['RELEASE_LATENCY'] | 53 | OVH_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): |
