diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-30 18:25:38 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-30 18:25:38 -0400 |
commit | c8cb14963511d5d1a3eb46624bcc0d2bcdf3b9bc (patch) | |
tree | 4b44c2814c085b384563bc27b50fdbe8caebe590 /experiment/tracer.py | |
parent | c6adbabd0bf897a1e750fe07bf068e285dd82108 (diff) |
Added more robust error handling inspired by color tests.
Diffstat (limited to 'experiment/tracer.py')
-rw-r--r-- | experiment/tracer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/experiment/tracer.py b/experiment/tracer.py index ad4ebfe..4949927 100644 --- a/experiment/tracer.py +++ b/experiment/tracer.py | |||
@@ -27,13 +27,14 @@ class LinuxTracer(Tracer): | |||
27 | def __init__(self, output_dir): | 27 | def __init__(self, output_dir): |
28 | super(LinuxTracer, self).__init__("trace-cmd", output_dir) | 28 | super(LinuxTracer, self).__init__("trace-cmd", output_dir) |
29 | 29 | ||
30 | extra_args = ["record", "-e", "sched:sched_switch", | 30 | extra_args = ["record", # "-e", "sched:sched_switch", |
31 | "-e", "litmus:*", | 31 | "-e", "litmus:*", |
32 | "-o", "%s/%s" % (output_dir, conf.FILES['linux_data'])] | 32 | "-o", "%s/%s" % (output_dir, conf.FILES['linux_data'])] |
33 | stdout = open('%s/trace-cmd-stdout.txt' % self.output_dir, 'w') | 33 | stdout = open('%s/trace-cmd-stdout.txt' % self.output_dir, 'w') |
34 | stderr = open('%s/trace-cmd-stderr.txt' % self.output_dir, 'w') | 34 | stderr = open('%s/trace-cmd-stderr.txt' % self.output_dir, 'w') |
35 | 35 | ||
36 | execute = Executable(conf.BINS['trace-cmd'], extra_args, stdout, stderr) | 36 | execute = Executable(conf.BINS['trace-cmd'], extra_args, stdout, stderr) |
37 | execute.cwd = output_dir | ||
37 | self.bins.append(execute) | 38 | self.bins.append(execute) |
38 | 39 | ||
39 | @staticmethod | 40 | @staticmethod |